diff options
author | Hans Wennborg <hans@chromium.org> | 2023-05-16 18:20:42 +0200 |
---|---|---|
committer | Hans Wennborg <hans@chromium.org> | 2023-05-16 20:22:09 +0200 |
commit | 7d47dac5f828efd1d378ba44a97559114f00fb64 (patch) | |
tree | af4a1c8140cb9f89833cab1f6f020d743bdac145 /cmake | |
parent | 64d169c74d2cd3730893dffacd0061b937e55169 (diff) | |
download | llvm-7d47dac5f828efd1d378ba44a97559114f00fb64.tar.gz |
[cmake] Set CMP0091 to fix Windows builds after the cmake_minimum_required bump
The build uses other mechanism to select the runtime.
Fixes #62719
Differential revision: https://reviews.llvm.org/D150688
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/Modules/CMakePolicy.cmake | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cmake/Modules/CMakePolicy.cmake b/cmake/Modules/CMakePolicy.cmake index 0ec32ad8637f..8a3445c40cb5 100644 --- a/cmake/Modules/CMakePolicy.cmake +++ b/cmake/Modules/CMakePolicy.cmake @@ -1,5 +1,10 @@ # CMake policy settings shared between LLVM projects +# CMP0091: MSVC runtime library flags are selected by an abstraction. +# New in CMake 3.15. https://cmake.org/cmake/help/latest/policy/CMP0091.html +if(POLICY CMP0091) + cmake_policy(SET CMP0091 OLD) +endif() # CMP0114: ExternalProject step targets fully adopt their steps. # New in CMake 3.19: https://cmake.org/cmake/help/latest/policy/CMP0114.html if(POLICY CMP0114) |