[PATCH] D17556: [CMake] Default CMAKE_MACOSX_RPATH to On, this is the default with CMP0042

Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 24 14:34:21 PST 2016


This revision was automatically updated to reflect the committed changes.
Closed by commit rL261797: [CMake] Default CMAKE_MACOSX_RPATH to On, this is the default with CMP0042 (authored by cbieneman).

Changed prior to commit:
  http://reviews.llvm.org/D17556?vs=48862&id=48983#toc

Repository:
  rL LLVM

http://reviews.llvm.org/D17556

Files:
  compiler-rt/trunk/CMakeLists.txt

Index: compiler-rt/trunk/CMakeLists.txt
===================================================================
--- compiler-rt/trunk/CMakeLists.txt
+++ compiler-rt/trunk/CMakeLists.txt
@@ -31,13 +31,19 @@
   # Invalidate a couple of keywords.
   set(cmake_2_8_12_INTERFACE)
   set(cmake_2_8_12_PRIVATE)
+  if(APPLE)
+    set(CMAKE_MACOSX_RPATH On)
+  endif
 else()
   # Use ${cmake_2_8_12_KEYWORD} intead of KEYWORD in target_link_libraries().
   set(cmake_2_8_12_INTERFACE INTERFACE)
   set(cmake_2_8_12_PRIVATE PRIVATE)
   if(POLICY CMP0022)
     cmake_policy(SET CMP0022 NEW) # automatic when 2.8.12 is required
   endif()
+  if(POLICY CMP0042)
+    cmake_policy(SET CMP0042 NEW) # automatic when 2.8.12 is required
+  endif()
 endif()
 
 # Top level target used to build all compiler-rt libraries.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D17556.48983.patch
Type: text/x-patch
Size: 799 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160224/bc0cd12f/attachment.bin>


More information about the llvm-commits mailing list