"...composable_kernel_rocm.git" did not exist on "63eee2d9991b08ca286f6895dd8f90da12a62da3"
Commit 85af926d authored by Jamie Snape's avatar Jamie Snape Committed by Jesse Beder
Browse files

Enable rpath on OS X when the CMake version supports it (#418)

CMake policy CMP0042 changes the default value of the MACOSX_RPATH target property to TRUE, therefore setting the directory portion of the install_name field of a shared library to be @rpath on OS X.
parent 519d33fe
......@@ -12,6 +12,11 @@ endif()
if(POLICY CMP0015)
cmake_policy(SET CMP0015 OLD)
endif()
# see https://cmake.org/cmake/help/latest/policy/CMP0042.html
if(POLICY CMP0042)
# Enable MACOSX_RPATH by default.
cmake_policy(SET CMP0042 NEW)
endif()
include(CheckCXXCompilerFlag)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment