[PATCH] D42463: [cmake] Set cmake policy CMP0068 to suppress warnings on OSX

Phabricator via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 24 20:58:46 PST 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rL323404: [cmake] Set cmake policy CMP0068 to suppress warnings on OSX (authored by dhinton, committed by ).

Repository:
  rL LLVM

https://reviews.llvm.org/D42463

Files:
  llvm/trunk/CMakeLists.txt


Index: llvm/trunk/CMakeLists.txt
===================================================================
--- llvm/trunk/CMakeLists.txt
+++ llvm/trunk/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.131389.patch
Type: text/x-patch
Size: 398 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180125/23071909/attachment.bin>


More information about the llvm-commits mailing list