diff --git a/CMakeLists.txt b/CMakeLists.txt index 54eda0a32..8643d06f0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -30,6 +30,9 @@ if(COMMAND cmake_policy) cmake_policy(SET CMP0017 NEW) endif() + # INTERPROCEDURAL_OPTIMIZATION is enforced when enabled. + # Allows passing -DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON + cmake_policy(SET CMP0069 NEW) endif() IF(APPLE)