diff --git a/CMakeLists.txt b/CMakeLists.txt index 6695eca4b1..978cd5664f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -46,6 +46,8 @@ endif() include(CXX1x) check_for_cxx17_compiler(CXX17_COMPILER) +set(CMAKE_CXX_VISIBILITY_PRESET hidden) + # If a C++17 compiler is available, then set the appropriate flags if(CXX17_COMPILER) set(CMAKE_CXX_STANDARD 17)