diff --git a/CMakeLists.txt b/CMakeLists.txt index bbd9928cf..6f57f68af 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -20,7 +20,9 @@ endif() cmake_policy( SET CMP0023 OLD ) # Keep cmake 3.0 quiet -cmake_policy( SET CMP0043 OLD ) +if( ${CMAKE_VERSION} VERSION_LESS "3.0.0" ) + cmake_policy( SET CMP0043 OLD ) +endif() include( MacroOptionalFindPackage ) include( MacroLogFeature )