diff options
| author | su_v <suv-sf@users.sf.net> | 2016-05-02 21:53:38 +0000 |
|---|---|---|
| committer | Marc Jeanmougin <marcjeanmougin@free.fr> | 2016-05-02 21:53:38 +0000 |
| commit | d8f69052ab1a34f0d225aea954785f370611f39b (patch) | |
| tree | 42293fe02a3dcdf92cf3afb8d30caec381746ab9 | |
| parent | Fix for cmake installing libs, using a subfolder for clarity when installing ... (diff) | |
| download | inkscape-d8f69052ab1a34f0d225aea954785f370611f39b.tar.gz inkscape-d8f69052ab1a34f0d225aea954785f370611f39b.zip | |
Fixes link on mac os x
(bzr r14868)
| -rw-r--r-- | CMakeLists.txt | 7 |
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 |
