diff options
author | Raul Tambre <raul@tambre.ee> | 2021-01-10 14:11:35 +0200 |
---|---|---|
committer | Raul Tambre <raul@tambre.ee> | 2021-01-19 17:19:36 +0200 |
commit | 480643a95cd157e654f4f97e8231b18850e7d79a (patch) | |
tree | 1b74c86c8a453b0de8eced3e3c62a74ecfb73904 /flang | |
parent | 8bf7116d50bfe8cb881273798ff384ed965c05e9 (diff) | |
download | llvm-480643a95cd157e654f4f97e8231b18850e7d79a.zip llvm-480643a95cd157e654f4f97e8231b18850e7d79a.tar.gz llvm-480643a95cd157e654f4f97e8231b18850e7d79a.tar.bz2 |
[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
Diffstat (limited to 'flang')
-rw-r--r-- | flang/CMakeLists.txt | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/flang/CMakeLists.txt b/flang/CMakeLists.txt index 07d3435..79aa538 100644 --- a/flang/CMakeLists.txt +++ b/flang/CMakeLists.txt @@ -1,20 +1,6 @@ cmake_minimum_required(VERSION 3.13.4) -# RPATH settings on macOS do not affect INSTALL_NAME. -if (POLICY CMP0068) - cmake_policy(SET CMP0068 NEW) - set(CMAKE_BUILD_WITH_INSTALL_NAME_DIR ON) -endif() - -# Include file check macros honor CMAKE_REQUIRED_LIBRARIES. -if(POLICY CMP0075) - cmake_policy(SET CMP0075 NEW) -endif() - -# option() honors normal variables. -if (POLICY CMP0077) - cmake_policy(SET CMP0077 NEW) -endif() +set(CMAKE_BUILD_WITH_INSTALL_NAME_DIR ON) option(LINK_WITH_FIR "Link driver with FIR and LLVM" ON) option(FLANG_BUILD_NEW_DRIVER "Build the flang compiler driver" OFF) |