Revert "[CMake] Do not set CMP0116 explicitly to old (#90385)"

This reverts commit ab405fb6e9.

This caused quite a few buildbot failures that need further
investigation.
This commit is contained in:
Aiden Grossman
2025-04-26 04:51:16 +00:00
parent 12d1cb1347
commit fa65a228f4
3 changed files with 30 additions and 26 deletions

View File

@@ -1,5 +1,11 @@
# CMake policy settings shared between LLVM projects
# CMP0116: Ninja generators transform `DEPFILE`s from `add_custom_command()`
# New in CMake 3.20. https://cmake.org/cmake/help/latest/policy/CMP0116.html
if(POLICY CMP0116)
cmake_policy(SET CMP0116 OLD)
endif()
# MSVC debug information format flags are selected via
# CMAKE_MSVC_DEBUG_INFORMATION_FORMAT, instead of
# embedding flags in e.g. CMAKE_CXX_FLAGS_RELEASE.