From 6c9c826e19ed9fe2074dbdc4061bb72d72bdc9cf Mon Sep 17 00:00:00 2001 From: jadebenn Date: Wed, 6 Mar 2024 07:49:40 -0600 Subject: [PATCH] chore: Set default symbol visibility to hidden in CMAKE (#1490) * set default symbol visibility to hidden in CMAKE * Update CMakeLists.txt with additional comments * whoops, wrong comment type --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 541b4266..c256724c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,6 +4,8 @@ include(CTest) set(CMAKE_CXX_STANDARD 20) set(CXX_STANDARD_REQUIRED ON) +set(CMAKE_POLICY_DEFAULT_CMP0063 NEW) # Set CMAKE visibility policy to NEW on project and subprojects +set(CMAKE_CXX_VISIBILITY_PRESET hidden) # Set C++ symbol visibility to default to hidden set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake") # Read variables from file