summarylogtreecommitdiffstats
path: root/rpath.patch
diff options
context:
space:
mode:
Diffstat (limited to 'rpath.patch')
-rw-r--r--rpath.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/rpath.patch b/rpath.patch
new file mode 100644
index 00000000000..ceeaebd2dd1
--- /dev/null
+++ b/rpath.patch
@@ -0,0 +1,16 @@
+diff --git a/cMake/FreeCadMacros.cmake b/cMake/FreeCadMacros.cmake
+index 1faa610d8..18ccdeea6 100644
+--- a/cMake/FreeCadMacros.cmake
++++ b/cMake/FreeCadMacros.cmake
+@@ -239,9 +239,9 @@ MACRO(SET_BIN_DIR ProjectName OutputName)
+ # FreeCADBase, SMDS, Driver, MEFISTO2 and area libs don't depend on parts from CMAKE_INSTALL_LIBDIR
+ if(NOT ${ProjectName} MATCHES "^(FreeCADBase|SMDS|Driver|MEFISTO2|area)$")
+ if(${ARGC} STREQUAL 4)
+- set_target_properties(${ProjectName} PROPERTIES INSTALL_RPATH ${CMAKE_INSTALL_PREFIX}${ARGV3})
++ set_property(TARGET ${ProjectName} APPEND PROPERTY INSTALL_RPATH ${CMAKE_INSTALL_PREFIX}${ARGV3})
+ else(${ARGC} STREQUAL 4)
+- set_target_properties(${ProjectName} PROPERTIES INSTALL_RPATH ${CMAKE_INSTALL_LIBDIR})
++ set_property(TARGET ${ProjectName} APPEND PROPERTY INSTALL_RPATH ${CMAKE_INSTALL_LIBDIR})
+ endif()
+ endif()
+ endif(WIN32)