Skip to content

Commit 5cda607

Browse files
author
timlinux
committedJul 27, 2007
Use rpath so no more nasty LD_LIBRARY_PATH should be needed when installing to a non
standard dir git-svn-id: http://svn.osgeo.org/qgis/trunk@7103 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 69398ed commit 5cda607

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed
 

‎src/app/CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ ENDIF (PYTHON_FOUND)
155155
QT4_WRAP_CPP(QGIS_APP_MOC_SRCS ${QGIS_APP_MOC_HDRS})
156156

157157

158+
158159
IF (WIN32 AND NOT MSVC)
159160

160161
# Icon for windows
@@ -223,6 +224,11 @@ TARGET_LINK_LIBRARIES(qgis
223224
qgis_gui
224225
)
225226

227+
SET_TARGET_PROPERTIES(qgis PROPERTIES
228+
INSTALL_RPATH ${CMAKE_INSTALL_PREFIX}/lib
229+
INSTALL_RPATH_USE_LINK_PATH true
230+
)
231+
226232
IF (PYTHON_FOUND)
227233
TARGET_LINK_LIBRARIES(qgis ${PYTHON_LIBRARIES})
228234
ENDIF (PYTHON_FOUND)

0 commit comments

Comments
 (0)
Please sign in to comment.