[PATCH] D111748: [CMake] Set the CMP0114 policy

Petr Hosek via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 13 11:20:04 PDT 2021


phosek created this revision.
phosek added reviewers: smeenai, beanz, ldionne.
Herald added a subscriber: mgorny.
phosek requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

We may consider enabling this policy in the future, but for now just
suppress the warnings to preserve the backwards compatibility.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D111748

Files:
  llvm/CMakeLists.txt


Index: llvm/CMakeLists.txt
===================================================================
--- llvm/CMakeLists.txt
+++ llvm/CMakeLists.txt
@@ -2,6 +2,12 @@
 
 cmake_minimum_required(VERSION 3.13.4)
 
+# CMP0114: ExternalProject step targets fully adopt their steps.
+# New in CMake 3.19. https://cmake.org/cmake/help/latest/policy/CMP0114.html
+if(POLICY CMP0114)
+  cmake_policy(SET CMP0114 OLD)
+endif()
+
 # CMP0116: Ninja generators transform `DEPFILE`s from `add_custom_command()`
 # New in CMake 3.20. https://cmake.org/cmake/help/latest/policy/CMP0116.html
 if(POLICY CMP0116)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D111748.379472.patch
Type: text/x-patch
Size: 588 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211013/f8ba9a24/attachment.bin>


More information about the llvm-commits mailing list