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) if(USE_PROJ4)
message(STATUS "Using PROJ4") message(STATUS "Using PROJ4")
find_package(PROJ4 CONFIG REQUIRED) 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) list(APPEND MAPNIK_OPTIONAL_LIBS proj)
endif() endif()