Skip to content

Commit 7aa41fd

Browse files
Explicitly set policy to new
1 parent 1d001a3 commit 7aa41fd

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

cmake/Modules/CMakePolicy.cmake

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# CMake policy settings shared between LLVM projects
22

3+
# CMP0116: Ninja generators transform `DEPFILE`s from `add_custom_command()`
4+
# New in CMake 3.20. https://cmake.org/cmake/help/latest/policy/CMP0116.html
5+
if(POLICY CMP0116)
6+
cmake_policy(SET CMP0116 NEW)
7+
endif()
8+
39
# MSVC debug information format flags are selected via
410
# CMAKE_MSVC_DEBUG_INFORMATION_FORMAT, instead of
511
# embedding flags in e.g. CMAKE_CXX_FLAGS_RELEASE.

0 commit comments

Comments
 (0)