We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6f14df8 commit b77b381Copy full SHA for b77b381
src/gui/CMakeLists.txt
@@ -43,6 +43,22 @@ ELSE (WIN32)
43
ADD_EXECUTABLE(qgis ${QGIS_APP_SRCS})
44
ENDIF (WIN32)
45
46
+# This sets runpath to the installation directory
47
+SET_TARGET_PROPERTIES(qgis PROPERTIES
48
+ INSTALL_RPATH ${CMAKE_INSTALL_PREFIX}/lib
49
+ BUILD_WITH_INSTALL_RPATH true
50
+)
51
+
52
+# Uncomment this to set runpath to the directory path specified at compile time
53
+#SET_TARGET_PROPERTIES(qgis PROPERTIES
54
+# INSTALL_RPATH_USE_LINK_PATH true
55
+#)
56
57
+# Uncomment this to set runpath relative to executable
58
59
+# LINK_FLAGS "-Wl,-rpath,'\$\$ORIGIN/../lib'"
60
61
62
TARGET_LINK_LIBRARIES(qgis
63
${QT_LIBRARIES}
64
qgis_core
0 commit comments