Still trying to work around RPATH issues.

This commit is contained in:
casey langen 2021-12-28 14:55:30 -08:00
parent d1d9db1e53
commit 54eaeb4b92

View File

@ -122,7 +122,12 @@ else()
# is not applied to the binaries until the user runs `make install`.
set(CMAKE_MACOSX_RPATH ON)
set(CMAKE_BUILD_RPATH_USE_ORIGIN ON)
set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/share/musikcube/")
if (NOT DEFINED RPATH_PREFIX)
message(STATUS "[macos build] RPATH_PREFIX not specified, will not apply one")
else()
message(STATUS "[macos build] using RPATH: ${RPATH_PREFIX}/share/musikcube")
set(CMAKE_INSTALL_RPATH "${RPATH_PREFIX}/share/musikcube/")
endif()
endif()
if (EXISTS "/etc/arch-release" OR EXISTS "/etc/manjaro-release" OR NO_NCURSESW)