From 54a61f7553d21bb0cdf5195fc17d0454afc9217b Mon Sep 17 00:00:00 2001 From: Mathis Logemann Date: Wed, 3 Feb 2021 22:47:15 +0100 Subject: [PATCH] add dlcfn on non windows systems --- CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index bbcd456fc..c5243dc16 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)