diff options
author | John MacFarlane <jgm@berkeley.edu> | 2016-11-19 09:37:51 +0100 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2016-11-19 09:37:51 +0100 |
commit | ce2a6a816b4947f1f6a65335360380d997e6e5b0 (patch) | |
tree | 164f9c619f922f55b40b2c3128b24e77c9720d8e | |
parent | 61c3be48c13e231e87d835445dc3b9343d7ab250 (diff) |
Put set_policy under cmake version test.
Otherwise we get errors in older versions of cmake.
-rw-r--r-- | src/CMakeLists.txt | 4 |
1 files changed, 3 insertions, 1 deletions
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") |