diff --git a/CMakeLists.txt b/CMakeLists.txt index 82da9bfa3..c7d4acac8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -497,7 +497,7 @@ endif() # Visibility # See https://gcc.gnu.org/wiki/Visibility -if(POLICY CMP0053) +if(POLICY CMP0063) cmake_policy(SET CMP0063 NEW) set(CMAKE_CXX_VISIBILITY_PRESET hidden) set(CMAKE_C_VISIBILITY_PRESET hidden)