Skip to content

Commit b3f6f78

Browse files
authored
Merge pull request #3633 from apple/lldb-Configure-CMake-policy-CMP0116-for-standalone-builds
[lldb] Configure CMake policy CMP0116 for standalone builds
2 parents 874e6a5 + 7907813 commit b3f6f78

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lldb/cmake/modules/LLDBStandalone.cmake

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# CMP0116: Ninja generators transform `DEPFILE`s from `add_custom_command()`
2+
# New in CMake 3.20. https://cmake.org/cmake/help/latest/policy/CMP0116.html
3+
if(POLICY CMP0116)
4+
cmake_policy(SET CMP0116 OLD)
5+
endif()
6+
17
option(LLVM_INSTALL_TOOLCHAIN_ONLY "Only include toolchain files in the 'install' target." OFF)
28

39
find_package(LLVM REQUIRED CONFIG HINTS ${LLVM_DIR} NO_CMAKE_FIND_ROOT_PATH)

0 commit comments

Comments
 (0)