cmake.patch 1013 B

1234567891011121314151617181920212223242526
  1. From 17f2f33d8733aa7dcb5e52fc9043447758a74869 Mon Sep 17 00:00:00 2001
  2. From: orbea <orbea@riseup.net>
  3. Date: Fri, 4 Sep 2020 09:21:45 -0700
  4. Subject: [PATCH] cmake: Fix compatibility with cmake 3.5.2.
  5. cmake 3.5.2 does not have VERSION_GREATER_EQUAL or VERSION_LESS_EQUAL.
  6. ---
  7. cmake/modules/FindGLM.cmake | 2 +-
  8. 1 file changed, 1 insertion(+), 1 deletion(-)
  9. diff --git a/cmake/modules/FindGLM.cmake b/cmake/modules/FindGLM.cmake
  10. index 32ce5058d..e3905b6c3 100644
  11. --- a/cmake/modules/FindGLM.cmake
  12. +++ b/cmake/modules/FindGLM.cmake
  13. @@ -52,6 +52,6 @@ find_package_handle_standard_args(GLM
  14. )
  15. # Enable GLM experimental extensions for GLM 0.9.9.0 to 0.9.9.3
  16. -if(GLM_VERSION_STRING VERSION_GREATER_EQUAL 0.9.9.0 AND GLM_VERSION_STRING VERSION_LESS_EQUAL 0.9.9.3)
  17. +if((GLM_VERSION_STRING VERSION_EQUAL 0.9.9.0 OR GLM_VERSION_STRING VERSION_GREATER 0.9.9.0) AND (GLM_VERSION_STRING VERSION_EQUAL 0.9.9.3 OR GLM_VERSION_STRING VERSION_LESS 0.9.9.3))
  18. add_definitions(-DGLM_ENABLE_EXPERIMENTAL)
  19. endif()
  20. --
  21. 2.25.0