Index: compiler-rt/trunk/CMakeLists.txt =================================================================== --- compiler-rt/trunk/CMakeLists.txt +++ compiler-rt/trunk/CMakeLists.txt @@ -31,6 +31,9 @@ # 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) @@ -38,6 +41,9 @@ 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.