Skip to content

Commit ef2ba58

Browse files
[CMake] Do not set CMP0116 explicitly to old
CMP0116 was originally set to old to get rid of warnings. However, this behavior is now set to new by default with the minimum CMake version that LLVM requires so does not produce any warnings, and setting it explicitly to old does produce a warning in newer CMake versions. Due to these reasons, remove this check for now. Splitting off from removing the CMP0114 check just in case something breaks. Partially fixes #83727.
1 parent ad2816e commit ef2ba58

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

cmake/Modules/CMakePolicy.cmake

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,6 @@
55
if(POLICY CMP0114)
66
cmake_policy(SET CMP0114 OLD)
77
endif()
8-
# CMP0116: Ninja generators transform `DEPFILE`s from `add_custom_command()`
9-
# New in CMake 3.20. https://cmake.org/cmake/help/latest/policy/CMP0116.html
10-
if(POLICY CMP0116)
11-
cmake_policy(SET CMP0116 OLD)
12-
endif()
138

149
# MSVC debug information format flags are selected via
1510
# CMAKE_MSVC_DEBUG_INFORMATION_FORMAT, instead of

0 commit comments

Comments
 (0)