don't go looking for GLM twice, check the cache

This commit is contained in:
Stephen Birarda 2013-05-21 15:01:41 -07:00
parent 95cef67e33
commit a4bf95f93b

View file

@ -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)