[libcxx] r227139 - Adopt CMake policy CMP0042. Set MACOSX_RPATH on by default.

Eric Fiselier eric at efcs.ca
Mon Jan 26 13:56:46 PST 2015


Author: ericwf
Date: Mon Jan 26 15:56:45 2015
New Revision: 227139

URL: http://llvm.org/viewvc/llvm-project?rev=227139&view=rev
Log:
Adopt CMake policy CMP0042. Set MACOSX_RPATH on by default.

Modified:
    libcxx/trunk/CMakeLists.txt

Modified: libcxx/trunk/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/CMakeLists.txt?rev=227139&r1=227138&r2=227139&view=diff
==============================================================================
--- libcxx/trunk/CMakeLists.txt (original)
+++ libcxx/trunk/CMakeLists.txt Mon Jan 26 15:56:45 2015
@@ -7,6 +7,10 @@
 project(libcxx CXX C)
 cmake_minimum_required(VERSION 2.8)
 
+if(POLICY CMP0042)
+  cmake_policy(SET CMP0042 NEW) # Set MACOSX_RPATH=YES by default
+endif()
+
 set(PACKAGE_NAME libcxx)
 set(PACKAGE_VERSION trunk-svn)
 set(PACKAGE_STRING "${PACKAGE_NAME} ${PACKAGE_VERSION}")





More information about the cfe-commits mailing list