summaryrefslogtreecommitdiff
path: root/indra/cmake/GLM.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'indra/cmake/GLM.cmake')
-rw-r--r--indra/cmake/GLM.cmake7
1 files changed, 7 insertions, 0 deletions
diff --git a/indra/cmake/GLM.cmake b/indra/cmake/GLM.cmake
index 84b155f6c5..d411c049ec 100644
--- a/indra/cmake/GLM.cmake
+++ b/indra/cmake/GLM.cmake
@@ -3,5 +3,12 @@ include(Prebuilt)
add_library( ll::glm INTERFACE IMPORTED )
+if (NOT USESYSTEMLIBS)
use_system_binary( glm )
+elseif (NOT (${LINUX_DISTRO} MATCHES debian OR (${LINUX_DISTRO} MATCHES ubuntu) OR (${LINUX_DISTRO} MATCHES opensuse-tumbleweed)))
+ find_package( glm REQUIRED )
+endif (NOT USESYSTEMLIBS)
+
+if (${LINUX_DISTRO} MATCHES debian OR (${LINUX_DISTRO} MATCHES ubuntu) OR (${LINUX_DISTRO} MATCHES opensuse-tumbleweed) OR NOT USESYSTEMLIBS)
use_prebuilt_binary(glm)
+endif ()