diff options
author | Boroondas Gupte (patch by Aleric Inglewood) <hg@boroon.dasgupta.ch> | 2011-04-03 14:34:44 +0200 |
---|---|---|
committer | Boroondas Gupte (patch by Aleric Inglewood) <hg@boroon.dasgupta.ch> | 2011-04-03 14:34:44 +0200 |
commit | 942823db091c0b10a80cbfc5994008624f18d318 (patch) | |
tree | 8eb0b5576d2e39f3dec254b1dfb0d161ac5c9c83 /indra/cmake/FindGLH.cmake | |
parent | 216c3b47716f6eb5ebf1713c77fc6a6bb6f43abe (diff) |
OPEN-38: Fixes for viewer-autobuild for standalone
Reviewed at https://codereview.secondlife.com/r/167/
(The patch to create this commit was taken from there, too. That patch
was made relative to 5f0ab9443ece. Applied cleanly to the (earlier)
43b4b7927c00.)
Also fixes OPEN-36
Diffstat (limited to 'indra/cmake/FindGLH.cmake')
-rw-r--r-- | indra/cmake/FindGLH.cmake | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/indra/cmake/FindGLH.cmake b/indra/cmake/FindGLH.cmake new file mode 100644 index 0000000000..3d16adaf03 --- /dev/null +++ b/indra/cmake/FindGLH.cmake @@ -0,0 +1,30 @@ +# -*- cmake -*- + +# - Find GLH +# Find the Graphic Library Helper includes. +# This module defines +# GLH_INCLUDE_DIR, where to find glh/glh_linear.h. +# GLH_FOUND, If false, do not try to use GLH. + +find_path(GLH_INCLUDE_DIR glh/glh_linear.h + NO_SYSTEM_ENVIRONMENT_PATH + ) + +if (GLH_INCLUDE_DIR) + set(GLH_FOUND "YES") +else (GLH_INCLUDE_DIR) + set(GLH_FOUND "NO") +endif (GLH_INCLUDE_DIR) + +if (GLH_FOUND) + if (NOT GLH_FIND_QUIETLY) + message(STATUS "Found GLH: ${GLH_INCLUDE_DIR}") + set(GLH_FIND_QUIETLY TRUE) # Only alert us the first time + endif (NOT GLH_FIND_QUIETLY) +else (GLH_FOUND) + if (GLH_FIND_REQUIRED) + message(FATAL_ERROR "Could not find GLH") + endif (GLH_FIND_REQUIRED) +endif (GLH_FOUND) + +mark_as_advanced(GLH_INCLUDE_DIR) |