add proj required define

This commit is contained in:
Mathis Logemann 2020-11-21 12:50:11 +01:00
parent 8de67bc262
commit 9a132080b5
4 changed files with 4 additions and 4 deletions

View file

@ -159,7 +159,7 @@ endif()
if(USE_PROJ4)
message(STATUS "Using PROJ4")
find_package(PROJ4 CONFIG REQUIRED)
list(APPEND MAPNIK_COMPILE_DEFS MAPNIK_USE_PROJ4)
list(APPEND MAPNIK_COMPILE_DEFS MAPNIK_USE_PROJ4 ACCEPT_USE_OF_DEPRECATED_PROJ_API_H=1)
list(APPEND MAPNIK_OPTIONAL_LIBS proj)
endif()

View file

@ -2,4 +2,4 @@
include("${CMAKE_CURRENT_LIST_DIR}/MapnikTargets.cmake")
check_required_components(mapnik)
check_required_components(mapnik)

View file

@ -8,4 +8,4 @@ endif()
if(BUILD_DEMO_CPP)
message(STATUS "Building c++ demo app")
add_subdirectory(c++)
endif()
endif()

2
deps/CMakeLists.txt vendored
View file

@ -1,2 +1,2 @@
cmake_minimum_required(VERSION 3.15.0)
add_subdirectory(agg)
add_subdirectory(agg)