mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-07-23 12:15:30 +02:00
don't go looking for GLM twice, check the cache
This commit is contained in:
parent
95cef67e33
commit
a4bf95f93b
1 changed files with 33 additions and 26 deletions
|
@ -29,6 +29,10 @@
|
||||||
# (To distribute this file outside of CMake, substitute the full
|
# (To distribute this file outside of CMake, substitute the full
|
||||||
# License text for the above reference.)
|
# License text for the above reference.)
|
||||||
|
|
||||||
|
IF (GLM_INCLUDE_DIR)
|
||||||
|
set(GLM_INCLUDE_DIRS "${GLM_INCLUDE_DIR}")
|
||||||
|
SET(GLM_FOUND TRUE)
|
||||||
|
ELSE (GLM_INCLUDE_DIR)
|
||||||
# default search dirs
|
# default search dirs
|
||||||
SET(_glm_HEADER_SEARCH_DIRS
|
SET(_glm_HEADER_SEARCH_DIRS
|
||||||
"/usr/include"
|
"/usr/include"
|
||||||
|
@ -59,5 +63,8 @@ FIND_PACKAGE_HANDLE_STANDARD_ARGS(GLM DEFAULT_MSG
|
||||||
IF(GLM_FOUND)
|
IF(GLM_FOUND)
|
||||||
SET(GLM_INCLUDE_DIRS "${GLM_INCLUDE_DIR}")
|
SET(GLM_INCLUDE_DIRS "${GLM_INCLUDE_DIR}")
|
||||||
|
|
||||||
|
if (NOT GLM_FIND_QUIETLY)
|
||||||
MESSAGE(STATUS "GLM_INCLUDE_DIR = ${GLM_INCLUDE_DIR}")
|
MESSAGE(STATUS "GLM_INCLUDE_DIR = ${GLM_INCLUDE_DIR}")
|
||||||
|
endif (NOT GLM_FIND_QUIETLY)
|
||||||
ENDIF(GLM_FOUND)
|
ENDIF(GLM_FOUND)
|
||||||
|
ENDIF(GLM_INCLUDE_DIR)
|
Loading…
Reference in a new issue