Index: clang/CMakeLists.txt =================================================================== --- clang/CMakeLists.txt +++ clang/CMakeLists.txt @@ -3,6 +3,12 @@ # If we are not building as a part of LLVM, build Clang as an # standalone project, using LLVM as an external library: if(CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR) + if(POLICY CMP0114) + cmake_policy(SET CMP0114 OLD) + endif() + if(POLICY CMP0116) + cmake_policy(SET CMP0116 OLD) + endif() project(Clang) set(CLANG_BUILT_STANDALONE TRUE) endif()