add RPATH for compiled tools to find the libddsc.so (#153)
* add RPATH for compiled tools to find the libddsc.so Signed-off-by: YuSheng <hello@cwyark.me>
This commit is contained in:
parent
b686ba858c
commit
ca35c7afb2
2 changed files with 6 additions and 0 deletions
|
@ -154,6 +154,11 @@ endif()
|
|||
|
||||
include(GNUInstallDirs)
|
||||
include(AnalyzeBuild)
|
||||
if(APPLE)
|
||||
set(CMAKE_INSTALL_RPATH "@loader_path/../${CMAKE_INSTALL_LIBDIR}")
|
||||
else()
|
||||
set(CMAKE_INSTALL_RPATH "$ORIGIN/../${CMAKE_INSTALL_LIBDIR}")
|
||||
endif()
|
||||
# Include Coverage before CTest so that COVERAGE_COMMAND can be modified
|
||||
# in the Coverage module should that ever be necessary.
|
||||
include(Coverage)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue