summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsu_v <suv-sf@users.sf.net>2016-05-02 21:53:38 +0000
committerMarc Jeanmougin <marcjeanmougin@free.fr>2016-05-02 21:53:38 +0000
commitd8f69052ab1a34f0d225aea954785f370611f39b (patch)
tree42293fe02a3dcdf92cf3afb8d30caec381746ab9
parentFix for cmake installing libs, using a subfolder for clarity when installing ... (diff)
downloadinkscape-d8f69052ab1a34f0d225aea954785f370611f39b.tar.gz
inkscape-d8f69052ab1a34f0d225aea954785f370611f39b.zip
Fixes link on mac os x
(bzr r14868)
-rw-r--r--CMakeLists.txt7
1 files changed, 6 insertions, 1 deletions
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