diff --git a/CMakeLists.txt b/CMakeLists.txt index f2bee42e63..fe4bc59607 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -23,6 +23,10 @@ cmake_policy(SET CMP0043 NEW) # Ignore COMPILE_DEFINITIONS_ properties cmake_policy(SET CMP0054 NEW) # Only interpret if() arguments as variables or keywords when unquoted - prevents intepreting if(SOME_STRING_VARIABLE MATCHES "MSVC") as if(SOME_STRING_VARIABLE MATCHES "1") cmake_policy(SET CMP0074 NEW) # find_package() uses _ROOT variables +if(POLICY CMP0144) + cmake_policy(SET CMP0144 NEW) # find_package() uses upper-case _ROOT variables +endif() + # Set RPATH-handing (CMake parameters) set(CMAKE_SKIP_BUILD_RPATH 0) set(CMAKE_BUILD_WITH_INSTALL_RPATH 0)