Skip to content

Commit ffdc7aa

Browse files
committed
Set default C++ visibility to hidden
Signed-off-by: Darby Johnston <[email protected]>
1 parent f2e1f83 commit ffdc7aa

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,8 @@ endif()
192192

193193
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
194194

195+
# Explicitly export C++ symbols for shared libraries.
196+
set(CMAKE_CXX_VISIBILITY_PRESET hidden)
195197
include(GenerateExportHeader)
196198

197199
#------------------------------------------------------------------------------

0 commit comments

Comments
 (0)