Fixed scripts for old cmake < 3.0
authorkhizmax <libcds.dev@gmail.com>
Mon, 16 Jan 2017 19:13:29 +0000 (22:13 +0300)
committerkhizmax <libcds.dev@gmail.com>
Mon, 16 Jan 2017 19:13:29 +0000 (22:13 +0300)
CMakeLists.txt

index bede664..159be55 100644 (file)
@@ -1,7 +1,9 @@
 cmake_minimum_required(VERSION 2.8.12)
 
 cmake_policy(SET CMP0016 NEW)
-cmake_policy(SET CMP0042 NEW)
+if(POLICY CMP0042)
+    cmake_policy(SET CMP0042 NEW)
+endif()
 
 set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/build/cmake ${CMAKE_MODULE_PATH})
 include(TargetArch)