add dlcfn on non windows systems

This commit is contained in:
Mathis Logemann 2021-02-03 22:47:15 +01:00
parent 5f02b197dd
commit 54a61f7553

View file

@ -214,6 +214,12 @@ if(USE_SVG_RENDERER)
list(APPEND MAPNIK_COMPILE_DEFS SVG_RENDERER)
endif()
if(NOT WIN32)
message(STATUS "Compiling with -DMAPNIK_COMPILE_DEFS")
list(APPEND MAPNIK_COMPILE_DEFS MAPNIK_HAS_DLCFN)
list(APPEND MAPNIK_OPTIONAL_LIBS ${CMAKE_DL_LIBS})
endif()
add_library(headers INTERFACE)
add_library(mapnik::headers ALIAS headers)