Merge pull request #93 from mamarley/quitonfaileddbconn
[quassel.git] / CMakeLists.txt
index 0c1141f..7e23817 100644 (file)
@@ -36,8 +36,9 @@ include(QuasselMacros)
 
 # Setting COMPILE_DEFINITIONS_<CONFIG> is deprecated since CMake 3.0 in favor of generator expressions.
 # These have existed since CMake 2.8.10; until we depend on that, we have to explicitly enable the old policy.
-cmake_policy(SET CMP0043 OLD)
-
+if (CMAKE_MAJOR_VERSION GREATER 2)
+    cmake_policy(SET CMP0043 OLD)
+endif()
 
 # Options and variables that can be set on the command line
 #####################################################################