diff --git a/CMakeLists.txt b/CMakeLists.txt index 410f0af683..d1b448ca3a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -48,7 +48,9 @@ if(COMMAND cmake_policy) cmake_policy(SET CMP0043 NEW) endif() cmake_policy(SET CMP0020 NEW) - cmake_policy(SET CMP0075 OLD) + if(POLICY CMP0075) + cmake_policy(SET CMP0075 OLD) + endif() endif() set(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS true)