Skip to content
Snippets Groups Projects
Commit 1ea501b8 authored by Dennis Klein's avatar Dennis Klein Committed by Axel Naumann
Browse files

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).
parent b501e68c
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment