From 58bbdc4a41ed98021dc74a2030aa42fbf86b3e8a Mon Sep 17 00:00:00 2001 From: Green Sky Date: Sun, 19 May 2024 11:43:01 +0200 Subject: [PATCH] plugin symbol visibility --- plugins/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/CMakeLists.txt b/plugins/CMakeLists.txt index fe19252..5704849 100644 --- a/plugins/CMakeLists.txt +++ b/plugins/CMakeLists.txt @@ -6,6 +6,10 @@ add_library(plugin_tox_upnp SHARED ./plugin_tox_upnp.cpp ) target_compile_features(plugin_tox_upnp PUBLIC cxx_std_17) +set_target_properties(plugin_tox_upnp PROPERTIES + C_VISIBILITY_PRESET hidden + POSITION_INDEPENDENT_CODE ON +) target_link_libraries(plugin_tox_upnp PUBLIC solanaceae_tox_upnp solanaceae_plugin