From 54eaeb4b921e15f0643f9e48c14a1c73be2faa0e Mon Sep 17 00:00:00 2001 From: casey langen Date: Tue, 28 Dec 2021 14:55:30 -0800 Subject: [PATCH] Still trying to work around RPATH issues. --- CMakeLists.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b6aceef32..e6ac200b5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)