enable position independent code for wkt and json

This commit is contained in:
Mathis Logemann 2021-01-24 19:35:21 +01:00
parent 14f4362bb5
commit 953796645f
2 changed files with 4 additions and 0 deletions

View file

@ -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}

View file

@ -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}