Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / cmake / Modules / CMakePolicy.cmake
blob0ec32ad8637f3dc237806719a4812528b82e31d4
1 # CMake policy settings shared between LLVM projects
3 # CMP0114: ExternalProject step targets fully adopt their steps.
4 # New in CMake 3.19: https://cmake.org/cmake/help/latest/policy/CMP0114.html
5 if(POLICY CMP0114)
6   cmake_policy(SET CMP0114 OLD)
7 endif()
8 # CMP0116: Ninja generators transform `DEPFILE`s from `add_custom_command()`
9 # New in CMake 3.20. https://cmake.org/cmake/help/latest/policy/CMP0116.html
10 if(POLICY CMP0116)
11   cmake_policy(SET CMP0116 OLD)
12 endif()