-
-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(test): setup rpath for installation
- Loading branch information
1 parent
6584b44
commit 6481113
Showing
2 changed files
with
16 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# - A workaround to correctly resolve installed runtime dependencies on unix for now | ||
# Include this module in the main CMakeLists.txt before adding targets to make use | ||
include_guard() | ||
|
||
include(GNUInstallDirs) | ||
|
||
set(CMAKE_SKIP_INSTALL_RPATH OFF) | ||
|
||
if(APPLE) | ||
set(CMAKE_MACOSX_RPATH ON) | ||
list(APPEND CMAKE_INSTALL_RPATH @loader_path/../${CMAKE_INSTALL_LIBDIR}) | ||
else() | ||
list(APPEND CMAKE_INSTALL_RPATH $ORIGIN/../${CMAKE_INSTALL_LIBDIR}) | ||
endif() |