[llvm] r339376 - Remove obsolete policy settings

Stephen Kelly via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 9 13:15:08 PDT 2018


Author: steveire
Date: Thu Aug  9 13:15:08 2018
New Revision: 339376

URL: http://llvm.org/viewvc/llvm-project?rev=339376&view=rev
Log:
Remove obsolete policy settings

Summary:
The line

 cmake_minimum_required(VERSION 3.4.3)

already has the effect of setting to NEW all policies present in that
release:

 https://cmake.org/cmake/help/v3.4/manual/cmake-policies.7.html

Subscribers: mgorny, llvm-commits

Differential Revision: https://reviews.llvm.org/D50407

Modified:
    llvm/trunk/CMakeLists.txt

Modified: llvm/trunk/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/CMakeLists.txt?rev=339376&r1=339375&r2=339376&view=diff
==============================================================================
--- llvm/trunk/CMakeLists.txt (original)
+++ llvm/trunk/CMakeLists.txt Thu Aug  9 13:15:08 2018
@@ -2,10 +2,6 @@
 
 cmake_minimum_required(VERSION 3.4.3)
 
-cmake_policy(SET CMP0022 NEW)
-
-cmake_policy(SET CMP0048 NEW)
-
 # CMake 3.1 and higher include generator expressions of the form
 # $<TARGETLIB:obj> in the SOURCES property.  These need to be
 # stripped everywhere that access the SOURCES property, so we just
@@ -13,10 +9,6 @@ cmake_policy(SET CMP0048 NEW)
 # in the output for now.
 cmake_policy(SET CMP0051 OLD)
 
-cmake_policy(SET CMP0056 NEW)
-
-cmake_policy(SET CMP0057 NEW)
-
 if(POLICY CMP0068)
   cmake_policy(SET CMP0068 NEW)
   set(CMAKE_BUILD_WITH_INSTALL_NAME_DIR ON)




More information about the llvm-commits mailing list