Improve compatibility with old CMake versions

This commit is contained in:
Zbigniew Mandziejewicz
2015-05-02 16:03:24 +08:00
parent d7fa6d318c
commit 60ccb43b14
3 changed files with 268 additions and 35 deletions

View File

@@ -1 +1,6 @@
include("${CMAKE_CURRENT_LIST_DIR}/glmTargets.cmake")
set(GLM_VERSION "@GLM_VERSION@")
set(GLM_INCLUDE_DIRS "@CMAKE_CURRENT_SOURCE_DIR@")
if (NOT CMAKE_VERSION VERSION_LESS "2.8.12")
include("${CMAKE_CURRENT_LIST_DIR}/glmTargets.cmake")
endif()