Skip to content

Commit

Permalink
set visibility=hidden related CMake variables
Browse files Browse the repository at this point in the history
  • Loading branch information
daschuer committed Aug 23, 2021
1 parent cb75654 commit ffddc56
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,10 @@ elseif(GNU_GCC OR LLVM_CLANG)
endif()
endif()

set(CMAKE_C_VISIBILITY_PRESET hidden)
set(CMAKE_CXX_VISIBILITY_PRESET hidden)
set(CMAKE_VISIBILITY_INLINES_HIDDEN TRUE)

if(WIN32)
# Add support for lib prefix on Windows
set(CMAKE_FIND_LIBRARY_PREFIXES "" "lib")
Expand Down

0 comments on commit ffddc56

Please sign in to comment.