[CMake] restore compability with 3.15
This commit is contained in:
parent
6dee79f442
commit
83b4989bd4
2 changed files with 2 additions and 4 deletions
|
@ -1,9 +1,7 @@
|
|||
if(BUILD_DEMO_VIEWER)
|
||||
message(STATUS "Building demo viewer")
|
||||
add_subdirectory(viewer)
|
||||
endif()
|
||||
|
||||
if(BUILD_DEMO_CPP)
|
||||
message(STATUS "Building c++ demo app")
|
||||
add_subdirectory(c++)
|
||||
endif()
|
||||
|
|
|
@ -109,8 +109,8 @@ target_link_libraries(mapnik-test-unit PUBLIC
|
|||
PostgreSQL::PostgreSQL
|
||||
)
|
||||
# workaround since the "offical" include dir would be <catch2/catch.hpp>
|
||||
file(COPY_FILE catch_ext.hpp "${CMAKE_CURRENT_BINARY_DIR}/catch_ext.hpp")
|
||||
file(COPY_FILE cleanup.hpp "${CMAKE_CURRENT_BINARY_DIR}/cleanup.hpp")
|
||||
file(COPY catch_ext.hpp DESTINATION "${CMAKE_CURRENT_BINARY_DIR}")
|
||||
file(COPY cleanup.hpp DESTINATION "${CMAKE_CURRENT_BINARY_DIR}")
|
||||
target_include_directories(mapnik-test-unit PRIVATE "${catch2_SOURCE_DIR}/single_include/catch2" ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR})
|
||||
|
||||
add_executable(agg_rasterizer_integer_overflow_test standalone/agg_rasterizer_integer_overflow_test.cpp)
|
||||
|
|
Loading…
Reference in a new issue