[PATCH] D42463: [cmake] Set cmake policy CMP0068 to suppress warnings on OSX
Don Hinton via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 24 11:03:19 PST 2018
hintonda updated this revision to Diff 131316.
hintonda added a comment.
Set CMAKE_BUILD_WITH_INSTALL_NAME_DIR=ON globally so it can be used
for external projects.
Repository:
rL LLVM
https://reviews.llvm.org/D42463
Files:
CMakeLists.txt
Index: CMakeLists.txt
===================================================================
--- CMakeLists.txt
+++ CMakeLists.txt
@@ -17,6 +17,11 @@
cmake_policy(SET CMP0057 NEW)
+if(POLICY CMP0068)
+ cmake_policy(SET CMP0068 NEW)
+ set(CMAKE_BUILD_WITH_INSTALL_NAME_DIR ON)
+endif()
+
if(NOT DEFINED LLVM_VERSION_MAJOR)
set(LLVM_VERSION_MAJOR 7)
endif()
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D42463.131316.patch
Type: text/x-patch
Size: 365 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180124/774aa8d2/attachment.bin>
More information about the llvm-commits
mailing list