diff --git a/CMakeLists.txt b/CMakeLists.txt index c5bc7b88..f4b40ef6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)