diff --git a/CMakeLists.txt b/CMakeLists.txt index 18d4b9147c7..85d4b51e00b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -15,6 +15,10 @@ if (POLICY CMP0051) cmake_policy(SET CMP0051 OLD) endif() +if(POLICY CMP0057) + cmake_policy(SET CMP0057 NEW) +endif() + if(NOT DEFINED LLVM_VERSION_MAJOR) set(LLVM_VERSION_MAJOR 4) endif()