summaryrefslogtreecommitdiff
path: root/indra/cmake/GLH.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'indra/cmake/GLH.cmake')
-rw-r--r--indra/cmake/GLH.cmake6
1 files changed, 6 insertions, 0 deletions
diff --git a/indra/cmake/GLH.cmake b/indra/cmake/GLH.cmake
index 0cefc3543a..09f7d568be 100644
--- a/indra/cmake/GLH.cmake
+++ b/indra/cmake/GLH.cmake
@@ -3,5 +3,11 @@ include(Prebuilt)
add_library( ll::glh_linear INTERFACE IMPORTED )
+if (USESYSTEMLIBS)
+ target_include_directories(ll::glh_linear SYSTEM INTERFACE
+ ${CMAKE_SYSROOT}/usr/local/include)
+ return ()
+endif ()
+
use_system_binary( glh_linear )
use_prebuilt_binary(glh_linear)