cmake: only set RPATH to $ORIGIN in portable installs

This commit is contained in:
Rosalie Wanders committed 2023-07-20 13:25:45 +02:00
1 parent 63906086b4
commit c3528f99cd
1 file changed
+5 -3
+5 -3
View File
@@ -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}