[libc-commits] [PATCH] D145983: [libc] Fix policy CMP0116 warnings for cmake 3.20 or above.
Tue Ly via Phabricator via libc-commits
libc-commits at lists.llvm.org
Mon Mar 13 13:16:57 PDT 2023
lntue created this revision.
lntue added reviewers: michaelrj, sivachandra.
Herald added subscribers: ecnelises, tschuett.
Herald added projects: libc-project, All.
lntue requested review of this revision.
Warnings due to changes in behavior of cmake 3.20 or above. See
https://cmake.org/cmake/latest/policy/CMP0116.html
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D145983
Files:
libc/CMakeLists.txt
Index: libc/CMakeLists.txt
===================================================================
--- libc/CMakeLists.txt
+++ libc/CMakeLists.txt
@@ -1,5 +1,11 @@
cmake_minimum_required(VERSION 3.13.4)
+# Maintain old behavior of transforming DEPFILEs to Ninja for TableGen with
+# cmake 3.20 or above.
+if (POLICY CMP0116)
+ cmake_policy(SET CMP0116 OLD)
+endif()
+
# Default to C++17
set(CMAKE_CXX_STANDARD 17)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D145983.504822.patch
Type: text/x-patch
Size: 418 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20230313/c18550e8/attachment.bin>
More information about the libc-commits
mailing list