CMP0114 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 CMP0116 check just in case something breaks. Partially fixes #83727.
33 lines
1.1 KiB
CMake
33 lines
1.1 KiB
CMake
# 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.
|
|
# New in CMake 3.25.
|
|
#
|
|
# Supports debug info with SCCache
|
|
# (https://github.com/mozilla/sccache?tab=readme-ov-file#usage)
|
|
# avoiding “fatal error C1041: cannot open program database; if
|
|
# multiple CL.EXE write to the same .PDB file, please use /FS"
|
|
if(POLICY CMP0141)
|
|
cmake_policy(SET CMP0141 NEW)
|
|
endif()
|
|
|
|
# CMP0144: find_package() uses uppercase <PackageName>_ROOT variables.
|
|
# New in CMake 3.27: https://cmake.org/cmake/help/latest/policy/CMP0144.html
|
|
if(POLICY CMP0144)
|
|
cmake_policy(SET CMP0144 NEW)
|
|
endif()
|
|
|
|
# CMP0147: Visual Studio Generators build custom commands in parallel.
|
|
# New in CMake 3.27: https://cmake.org/cmake/help/latest/policy/CMP0147.html
|
|
if(POLICY CMP0147)
|
|
cmake_policy(SET CMP0147 NEW)
|
|
endif()
|