add hidden symbols options

pull/3254/head
zhaowq32 10 months ago
parent 51a0deca2c
commit 7b2525469c

@ -54,6 +54,12 @@ endif()
option(SPDLOG_BUILD_ALL "Build all artifacts" OFF)
option(SPDLOG_HIDDEN_SYMBOLS "Hidden symbols" OFF)
if(SPDLOG_HIDDEN_SYMBOLS)
set(CMAKE_CXX_VISIBILITY_PRESET hidden)
endif()
# build shared option
option(SPDLOG_BUILD_SHARED "Build shared library" OFF)

Loading…
Cancel
Save