From 953796645f0d358f2c48f5d754597c0734ede67c Mon Sep 17 00:00:00 2001 From: Mathis Logemann Date: Sun, 24 Jan 2021 19:35:21 +0100 Subject: [PATCH] enable position independent code for wkt and json --- src/json/CMakeLists.txt | 2 ++ src/wkt/CMakeLists.txt | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/json/CMakeLists.txt b/src/json/CMakeLists.txt index 8428e87e4..a8430a2f7 100644 --- a/src/json/CMakeLists.txt +++ b/src/json/CMakeLists.txt @@ -17,6 +17,8 @@ add_library(json STATIC ) add_library(mapnik::json ALIAS json) +set_property(TARGET json PROPERTY POSITION_INDEPENDENT_CODE ON) + target_include_directories(json PRIVATE ${JPEG_INCLUDE_DIR} ${LIBXML2_INCLUDE_DIR} diff --git a/src/wkt/CMakeLists.txt b/src/wkt/CMakeLists.txt index c787df8d5..1741834c2 100644 --- a/src/wkt/CMakeLists.txt +++ b/src/wkt/CMakeLists.txt @@ -9,6 +9,8 @@ add_library(wkt STATIC ) add_library(mapnik::wkt ALIAS wkt) +set_property(TARGET wkt PROPERTY POSITION_INDEPENDENT_CODE ON) + target_include_directories(wkt PRIVATE ${MAPNIK_INCLUDE_PATH} ${JPEG_INCLUDE_DIR}