diff --git a/CMakeLists.txt b/CMakeLists.txt index d8bcbef..87c9bda 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,6 +4,7 @@ project(libnecrolog LANGUAGES CXX) set(WITH_EXAMPLES OFF CACHE BOOL "Enable build of examples") set(BUILD_SHARED_LIBS ON CACHE BOOL "Build shared libraries instead of static") +set(CMAKE_CXX_VISIBILITY_PRESET hidden) set(CMAKE_POSITION_INDEPENDENT_CODE ON) set(CMAKE_CXX_STANDARD 17) set(CMAKE_CXX_STANDARD_REQUIRED ON)