gplugin/gplugin

Parents 4df61887c2c7
Children 87071fc34287
Only disable the cmake policies if we're on a newer version because it dies otherwise
--- a/CMakeLists.txt Sat Feb 28 20:41:32 2015 -0600
+++ b/CMakeLists.txt Sat Feb 28 20:46:47 2015 -0600
@@ -11,11 +11,13 @@
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake/Compatibility)
endif(${CMAKE_VERSION} VERSION_LESS "2.8.3")
-# allow reading of the LOCATION property
-cmake_policy(SET CMP0026 OLD)
+if(${CMAKE_VERSION} VERSION_GREATER "2.8.12")
+ # allow reading of the LOCATION property
+ cmake_policy(SET CMP0026 OLD)
-# don't force target names to match a pattern
-cmake_policy(SET CMP0037 OLD)
+ # don't force target names to match a pattern
+ cmake_policy(SET CMP0037 OLD)
+endif(${CMAKE_VERSION} VERSION_GREATER "2.8.12")
###############################################################################
# Project Info