diff --git a/CMakeLists.txt b/CMakeLists.txt index 8b025cc5f1b0ea433ec044f7ed58e27d97f46c83..ac18d54fbd06cb2f7d7c0af586e5419a8df4723d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -20,7 +20,7 @@ endif() cmake_policy( SET CMP0023 OLD ) # Keep cmake 3.0 quiet -if( "${CMAKE_VERSION}" VERSION_LESS "3.0.0" ) +if( POLICY CMP0043 ) cmake_policy( SET CMP0043 OLD ) endif()