Skip to content

Commit

Permalink
Use rpath so no more nasty LD_LIBRARY_PATH should be needed when inst…
Browse files Browse the repository at this point in the history
…alling to a non

standard dir


git-svn-id: http://svn.osgeo.org/qgis/trunk@7103 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
timlinux committed Jul 27, 2007
1 parent 69398ed commit 5cda607
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/app/CMakeLists.txt
Expand Up @@ -155,6 +155,7 @@ ENDIF (PYTHON_FOUND)
QT4_WRAP_CPP(QGIS_APP_MOC_SRCS ${QGIS_APP_MOC_HDRS})



IF (WIN32 AND NOT MSVC)

# Icon for windows
Expand Down Expand Up @@ -223,6 +224,11 @@ TARGET_LINK_LIBRARIES(qgis
qgis_gui
)

SET_TARGET_PROPERTIES(qgis PROPERTIES
INSTALL_RPATH ${CMAKE_INSTALL_PREFIX}/lib
INSTALL_RPATH_USE_LINK_PATH true
)

IF (PYTHON_FOUND)
TARGET_LINK_LIBRARIES(qgis ${PYTHON_LIBRARIES})
ENDIF (PYTHON_FOUND)
Expand Down

0 comments on commit 5cda607

Please sign in to comment.