diff --git CMakeLists.txt CMakeLists.txt
index cddbfbe..9a2fa73 100644
|
|
set(CMAKE_INCLUDE_CURRENT_DIR TRUE) |
42 | 42 | |
43 | 43 | if(APPLE) |
44 | 44 | SET(CMAKE_MACOSX_RPATH TRUE) |
45 | | SET(CMAKE_INSTALL_RPATH "@loader_path/../lib/inkscape") |
| 45 | # amend the rpath |
| 46 | SET(CMAKE_INSTALL_RPATH "@loader_path/../lib/inkscape;${CMAKE_INSTALL_RPATH}") |
| 47 | # make sure shared libraries will store full paths in their ID |
| 48 | SET(CMAKE_BUILD_WITH_INSTALL_NAME_DIR TRUE) |
46 | 49 | else() |
47 | 50 | SET(CMAKE_INSTALL_RPATH "$ORIGIN/../lib/inkscape") |
48 | 51 | endif() |
diff --git src/CMakeLists.txt src/CMakeLists.txt
index 9ee4491..c020deb 100644
|
|
endif() |
526 | 526 | |
527 | 527 | # Build everything except main and inkview.c in a shared library. |
528 | 528 | add_library(inkscape_base SHARED ${inkscape_SRC} ${sp_SRC}) |
| 529 | # use the "magic" path specifier for this library's ID (Mac specific) |
| 530 | set_target_properties(inkscape_base PROPERTIES |
| 531 | INSTALL_NAME_DIR @rpath) |
529 | 532 | |
530 | 533 | # make executables for inkscape and inkview |
531 | 534 | add_executable(inkscape ${main_SRC}) |