add hidden symbols options
This commit is contained in:
parent
51a0deca2c
commit
7b2525469c
@ -54,6 +54,12 @@ endif()
|
|||||||
|
|
||||||
option(SPDLOG_BUILD_ALL "Build all artifacts" OFF)
|
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
|
# build shared option
|
||||||
option(SPDLOG_BUILD_SHARED "Build shared library" OFF)
|
option(SPDLOG_BUILD_SHARED "Build shared library" OFF)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user