We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b961157 commit 3076086Copy full SHA for 3076086
1 file changed
CMakeLists.txt
@@ -82,6 +82,17 @@ target_sources(scratchcpp
82
83
include(FetchContent)
84
85
+# Compiler options
86
+target_compile_options(scratchcpp PRIVATE
87
+ -fvisibility=hidden
88
+ -fvisibility-inlines-hidden
89
+)
90
+
91
+target_link_options(scratchcpp PRIVATE
92
+ -Wl,--exclude-libs,ALL
93
+ -Wl,-Bsymbolic
94
95
96
# zip
97
include(build/zip.cmake)
98
target_link_libraries(scratchcpp PRIVATE zip)
0 commit comments