From: khizmax Date: Mon, 16 Jan 2017 19:13:29 +0000 (+0300) Subject: Fixed scripts for old cmake < 3.0 X-Git-Tag: v2.3.0~204 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=981359bd99870e06e6bc546f1f57553ca7dc8485;p=libcds.git Fixed scripts for old cmake < 3.0 --- diff --git a/CMakeLists.txt b/CMakeLists.txt index bede664a..159be557 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)