From ce2a6a816b4947f1f6a65335360380d997e6e5b0 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sat, 19 Nov 2016 09:37:51 +0100 Subject: Put set_policy under cmake version test. Otherwise we get errors in older versions of cmake. --- src/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 19c0f28..8d9659e 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -1,5 +1,7 @@ cmake_minimum_required(VERSION 2.8) -cmake_policy(SET CMP0063 NEW) +if(${CMAKE_VERSION} VERSION_GREATER "3.3") + cmake_policy(SET CMP0063 NEW) +endif() set(LIBRARY "libcmark") set(STATICLIBRARY "libcmark_static") -- cgit v1.2.3