cmake do not test cmp0110 on versions less 3.19

This commit is contained in:
Mathis Logemann 2021-02-03 22:53:02 +01:00
parent 74b325e71a
commit 2009598cdc

View file

@ -16,9 +16,12 @@ set(CATCH_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR})
add_library(Catch INTERFACE) add_library(Catch INTERFACE)
target_include_directories(Catch INTERFACE ${CATCH_INCLUDE_DIR}) target_include_directories(Catch INTERFACE ${CATCH_INCLUDE_DIR})
# for cmake 3.19+ https://cmake.org/cmake/help/git-stage/policy/CMP0110.html if(${CMAKE_VERSION} VERSION_GREATER_EQUAL "3.19.0")
# might not be needed if catch updates its cmakes # for cmake 3.19+ https://cmake.org/cmake/help/git-stage/policy/CMP0110.html
cmake_policy(SET CMP0110 OLD) # might not be needed if catch updates its cmakes
cmake_policy(SET CMP0110 OLD)
endif()
add_executable(mapnik-test-unit add_executable(mapnik-test-unit
unit/run.cpp unit/run.cpp