mirror of
https://github.com/Rosalie241/RMG.git
synced 2026-11-17 03:04:03 +01:00
cmake: only set RPATH to $ORIGIN in portable installs
This commit is contained in:
1 parent
63906086b4
commit
c3528f99cd
1 file changed
+5
-3
@@ -98,9 +98,11 @@ target_link_libraries(RMG
|
||||
)
|
||||
|
||||
# needed for dynamically linked RMG-Core
|
||||
set_target_properties(RMG PROPERTIES
|
||||
INSTALL_RPATH "$ORIGIN"
|
||||
)
|
||||
if (PORTABLE_INSTALL)
|
||||
set_target_properties(RMG PROPERTIES
|
||||
INSTALL_RPATH "$ORIGIN"
|
||||
)
|
||||
endif(PORTABLE_INSTALL)
|
||||
|
||||
target_include_directories(RMG PRIVATE
|
||||
${CMAKE_CURRENT_BINARY_DIR}
|
||||
|
||||
Reference in new issue
Block a user