We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 38091b3 commit da84208Copy full SHA for da84208
CMakeLists.txt
@@ -17,6 +17,11 @@ if(CMAKE_VERSION VERSION_GREATER_EQUAL "3.15")
17
cmake_policy(SET CMP0092 NEW)
18
endif()
19
20
+if(CMAKE_VERSION VERSION_GREATER_EQUAL "3.3")
21
+ # Honor visibility properties for all target types.
22
+ cmake_policy(SET CMP0063 NEW)
23
+endif()
24
+
25
option(ZIG_BUILD "Enable zig build" OFF)
26
if(ZIG_BUILD)
27
include(cmake/zig.cmake)
@@ -1196,6 +1201,11 @@ add_library(unicorn-common STATIC
1196
1201
${UNICORN_COMMON_SRCS}
1197
1202
)
1198
1203
1204
+set_target_properties(unicorn-common
1205
+ PROPERTIES
1206
+ C_VISIBILITY_PRESET
1207
+ hidden)
1208
1199
1209
if(NOT MSVC AND NOT ANDROID_ABI)
1200
1210
target_link_libraries(unicorn-common PRIVATE pthread)
1211
0 commit comments