From 11b7b4f8367bdf1f124abb38dd0ca17f3631fa86 Mon Sep 17 00:00:00 2001 From: Matej Kenda Date: Sat, 13 Jan 2024 17:12:06 +0100 Subject: [PATCH] enh(CMake): Set symbol visibility to hidden (#4393, #3331) --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) 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)