mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-22 14:23:10 -05:00
1ba91291e3
BUILD_WITH_INSTALL_RPATH, SKIP_BUILD_RPATH, CMAKE_SKIP_RPATH and CMAKE_SKIP_INSTALL_RPATH no longer any effect on the install name of a target on macOS. Fixes: #16589
7 lines
217 B
CMake
7 lines
217 B
CMake
|
|
cmake_policy(SET CMP0068 NEW)
|
|
cmake_policy(SET CMP0042 NEW)
|
|
|
|
add_library(foo SHARED empty.cpp)
|
|
set_target_properties(foo PROPERTIES INSTALL_NAME_DIR "@rpath" INSTALL_RPATH "@loader_path/" BUILD_WITH_INSTALL_RPATH 1)
|