[PATCH] D62171: build: Enable CMake Policy 0077
Saleem Abdulrasool via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon May 20 20:51:11 PDT 2019
compnerd created this revision.
compnerd added reviewers: beanz, smeenai.
Herald added a subscriber: mgorny.
Herald added a project: LLVM.
Enable CMake policy 77. This alters the behavior of `option`. The old behavior would remove the value of the option from the cache and create a new one. The new behavior does not create the variable if it is defined already. This ensures that subsequent reconfigures will behave identically. This seems better than the setting of `OLD` - the desire is to ensure that it is set to `OLD` or `NEW`.
Repository:
rL LLVM
https://reviews.llvm.org/D62171
Files:
CMakeLists.txt
Index: CMakeLists.txt
===================================================================
--- CMakeLists.txt
+++ CMakeLists.txt
@@ -11,6 +11,10 @@
cmake_policy(SET CMP0075 NEW)
endif()
+if(POLICY CMP0077)
+ cmake_plicy(SET CMP0077 NEW)
+endif()
+
if(NOT DEFINED LLVM_VERSION_MAJOR)
set(LLVM_VERSION_MAJOR 8)
endif()
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D62171.200394.patch
Type: text/x-patch
Size: 327 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190521/584bcb34/attachment.bin>
More information about the llvm-commits
mailing list