[PATCH] D39716: Explicitly set CMake policy CMP0068 to NEW to avoid warnings
Guilherme Amadio via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 7 00:19:17 PST 2017
amadio created this revision.
Herald added a subscriber: mgorny.
This change is to avoid warnings from CMake 3.9.3 and newer on macOS.
See cmake --help-policy CMP0068 for more information.
https://reviews.llvm.org/D39716
Files:
CMakeLists.txt
Index: CMakeLists.txt
===================================================================
--- CMakeLists.txt
+++ CMakeLists.txt
@@ -17,6 +17,10 @@
cmake_policy(SET CMP0057 NEW)
+if(POLICY CMP0068)
+ cmake_policy(SET CMP0068 NEW)
+endif()
+
if(NOT DEFINED LLVM_VERSION_MAJOR)
set(LLVM_VERSION_MAJOR 6)
endif()
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D39716.121842.patch
Type: text/x-patch
Size: 320 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171107/d7a9d7b0/attachment.bin>
More information about the llvm-commits
mailing list