Add -fvisibility=hidden -fvisibility-inlines-hidden to mapnik target (CMake)

This commit is contained in:
Artem Pavlenko 2023-03-07 10:02:50 +00:00
parent accb28eb80
commit 87ac079bb6

View file

@ -44,6 +44,8 @@ endif()
set_target_properties(mapnik PROPERTIES
POSITION_INDEPENDENT_CODE ON
CXX_VISIBILITY_PRESET hidden
VISIBILITY_INLINES_HIDDEN ON
OUTPUT_NAME "mapnik"
PREFIX "lib"
IMPORT_PREFIX "lib" # for the archive on dll platforms