- Commit
- ce2a6a816b4947f1f6a65335360380d997e6e5b0
- Parent
- 61c3be48c13e231e87d835445dc3b9343d7ab250
- Author
- John MacFarlane <jgm@berkeley.edu>
- Date
Put set_policy under cmake version test.
Otherwise we get errors in older versions of cmake.
My personal build of CMark ✏️
Put set_policy under cmake version test.
Otherwise we get errors in older versions of cmake.
1 file changed, 3 insertions, 1 deletion
Status | File Name | N° Changes | Insertions | Deletions |
Modified | src/CMakeLists.txt | 4 | 3 | 1 |
diff --git 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")