[PATCH] D150688: [cmake] Set CMP0091 to fix Windows builds after the cmake_minimum_required bump
Hans Wennborg via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue May 16 11:22:37 PDT 2023
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG7d47dac5f828: [cmake] Set CMP0091 to fix Windows builds after the cmake_minimum_required bump (authored by hans).
Changed prior to commit:
https://reviews.llvm.org/D150688?vs=522662&id=522722#toc
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D150688/new/
https://reviews.llvm.org/D150688
Files:
cmake/Modules/CMakePolicy.cmake
Index: cmake/Modules/CMakePolicy.cmake
===================================================================
--- cmake/Modules/CMakePolicy.cmake
+++ 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)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D150688.522722.patch
Type: text/x-patch
Size: 627 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230516/6232534d/attachment.bin>
More information about the llvm-commits
mailing list