From 1ea501b815b2129a6506ac1c6f98894f3edfd43b Mon Sep 17 00:00:00 2001 From: Dennis Klein <d.klein@gsi.de> Date: Wed, 5 Dec 2018 23:58:13 +0100 Subject: [PATCH] Let CMake manage RPATH entries Adding RPATH entries manually and via CMAKE_*RPATH* facilities may lead to conflict of authorities. This instance in particular tries to add the same RPATH entry twice (fails on MacOS). --- cmake/modules/SetUpMacOS.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/modules/SetUpMacOS.cmake b/cmake/modules/SetUpMacOS.cmake index 37d76df0a22..0360e938c9f 100644 --- a/cmake/modules/SetUpMacOS.cmake +++ b/cmake/modules/SetUpMacOS.cmake @@ -139,7 +139,7 @@ if (CMAKE_SYSTEM_NAME MATCHES Darwin) endif() #---Set Linker flags---------------------------------------------------------------------- - set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -mmacosx-version-min=${MACOSX_VERSION} -Wl,-rpath,@loader_path/../lib") + set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -mmacosx-version-min=${MACOSX_VERSION}") else (CMAKE_SYSTEM_NAME MATCHES Darwin) -- GitLab