Harmonize cmake_policy() across standalone builds of all projects
authorMichał Górny <mgorny@gentoo.org>
Mon, 24 Oct 2022 04:31:37 +0000 (06:31 +0200)
committerMichał Górny <mgorny@gentoo.org>
Fri, 28 Oct 2022 06:46:48 +0000 (08:46 +0200)
commit9dd01a5241dc5b46e92485e05bc345221df8938c
tree71a61990dcfd564a665087a953547e77d7b0d679
parentfecf067db40ffa1a6d5d665769c90cd29547f502
Harmonize cmake_policy() across standalone builds of all projects

Move `cmake_policy()` settings from `llvm/CMakeLists.txt` into a shared
`cmake/modules/CMakePolicy.cmake`.  Include it from all relevant
projects that support standalone builds, in order to ensure that
the policies are consistently set whether they are built in-tree
or stand-alone.

Differential Revision: https://reviews.llvm.org/D136572
clang/CMakeLists.txt
cmake/Modules/CMakePolicy.cmake [new file with mode: 0644]
flang/CMakeLists.txt
lld/CMakeLists.txt
lldb/CMakeLists.txt
lldb/cmake/modules/LLDBStandalone.cmake
llvm/CMakeLists.txt
mlir/CMakeLists.txt