[PATCH] D50407: Remove obsolete policy settings

Stephen Kelly via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 7 14:39:10 PDT 2018


steveire created this revision.
Herald added subscribers: llvm-commits, mgorny.

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


Repository:
  rL LLVM

https://reviews.llvm.org/D50407

Files:
  CMakeLists.txt


Index: CMakeLists.txt
===================================================================
--- CMakeLists.txt
+++ CMakeLists.txt
@@ -2,21 +2,13 @@
 
 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
 # defer to the OLD behavior of not including generator expressions
 # 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)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D50407.159597.patch
Type: text/x-patch
Size: 743 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180807/572101ea/attachment.bin>


More information about the llvm-commits mailing list