Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed building msexport with runpath
git-svn-id: http://svn.osgeo.org/qgis/branches/Release-0_8_0@6715 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
homann committed Feb 26, 2007
1 parent 8a88d92 commit d39373b
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions tools/mapserver_export/CMakeLists.txt
Expand Up @@ -29,6 +29,23 @@ INCLUDE_DIRECTORIES (

ADD_EXECUTABLE (msexport MACOSX_BUNDLE ${MSEXPORT_SRCS} ${MSEXPORT_MOC_SRCS})

# This sets runpath to the installation directory
SET_TARGET_PROPERTIES(msexport PROPERTIES
INSTALL_RPATH ${CMAKE_INSTALL_PREFIX}/lib
BUILD_WITH_INSTALL_RPATH true
)

# Uncomment this to set runpath to the directory path specified at compile time
#SET_TARGET_PROPERTIES(msexport PROPERTIES
# INSTALL_RPATH_USE_LINK_PATH true
#)

# Uncomment this to set runpath relative to executable
#SET_TARGET_PROPERTIES(msexport PROPERTIES
# LINK_FLAGS "-Wl,-rpath,'\$\$ORIGIN/../lib'"
#)


TARGET_LINK_LIBRARIES (msexport
${QT_LIBRARIES}
${PYTHON_LIBRARIES}
Expand Down

0 comments on commit d39373b

Please sign in to comment.