Skip to content

Commit d217d8b

Browse files
authored
Merge pull request #2885 from apple/cmake-Configure-policy-CMP0116
[cmake] Configure policy CMP0116
2 parents cb26f46 + 5dc9317 commit d217d8b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

llvm/CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@ if(POLICY CMP0077)
1515
cmake_policy(SET CMP0077 NEW)
1616
endif()
1717

18+
# CMP0116: Ninja generators transform `DEPFILE`s from `add_custom_command()`
19+
# New in CMake 3.20. https://cmake.org/cmake/help/latest/policy/CMP0116.html
20+
if(POLICY CMP0116)
21+
cmake_policy(SET CMP0116 OLD)
22+
endif()
23+
1824
if(NOT DEFINED LLVM_VERSION_MAJOR)
1925
set(LLVM_VERSION_MAJOR 12)
2026
endif()

0 commit comments

Comments
 (0)