From d8f69052ab1a34f0d225aea954785f370611f39b Mon Sep 17 00:00:00 2001 From: su_v Date: Mon, 2 May 2016 23:53:38 +0200 Subject: Fixes link on mac os x (bzr r14868) --- CMakeLists.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3592d2e0a..4196781d9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -19,7 +19,12 @@ project(inkscape) set(INKSCAPE_VERSION 0.91+devel) set(PROJECT_NAME inkscape) set(CMAKE_INCLUDE_CURRENT_DIR TRUE) -SET(CMAKE_INSTALL_RPATH "$ORIGIN/../lib/inkscape") +if(APPLE) + SET(CMAKE_MACOSX_RPATH TRUE) + SET(CMAKE_INSTALL_RPATH "@loader_path/../lib/inkscape") +else() + SET(CMAKE_INSTALL_RPATH "$ORIGIN/../lib/inkscape") +endif() cmake_policy(SET CMP0003 NEW) # don't be prolific with library paths -- cgit v1.2.3