[CMake] Remove dead code setting policies to NEW
authorRaul Tambre <raul@tambre.ee>
Sun, 10 Jan 2021 12:11:35 +0000 (14:11 +0200)
committerRaul Tambre <raul@tambre.ee>
Tue, 19 Jan 2021 15:19:36 +0000 (17:19 +0200)
commit480643a95cd157e654f4f97e8231b18850e7d79a
tree1b74c86c8a453b0de8eced3e3c62a74ecfb73904
parent8bf7116d50bfe8cb881273798ff384ed965c05e9
[CMake] Remove dead code setting policies to NEW

cmake_minimum_required(VERSION) calls cmake_policy(VERSION),
which sets all policies up to VERSION to NEW.
LLVM started requiring CMake 3.13 last year, so we can remove
a bunch of code setting policies prior to 3.13 to NEW as it
no longer has any effect.

Reviewed By: phosek, #libunwind, #libc, #libc_abi, ldionne

Differential Revision: https://reviews.llvm.org/D94374
clang/CMakeLists.txt
compiler-rt/CMakeLists.txt
flang/CMakeLists.txt
libcxx/CMakeLists.txt
libcxx/utils/ci/runtimes/CMakeLists.txt
libcxxabi/CMakeLists.txt
libunwind/CMakeLists.txt
lldb/CMakeLists.txt
llvm/CMakeLists.txt
mlir/examples/standalone/CMakeLists.txt