Skip to content

Commit d39373b

Browse files
author
homann
committedFeb 26, 2007
Fixed building msexport with runpath
git-svn-id: http://svn.osgeo.org/qgis/branches/Release-0_8_0@6715 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 8a88d92 commit d39373b

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
 

‎tools/mapserver_export/CMakeLists.txt

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,23 @@ INCLUDE_DIRECTORIES (
2929

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

32+
# This sets runpath to the installation directory
33+
SET_TARGET_PROPERTIES(msexport PROPERTIES
34+
INSTALL_RPATH ${CMAKE_INSTALL_PREFIX}/lib
35+
BUILD_WITH_INSTALL_RPATH true
36+
)
37+
38+
# Uncomment this to set runpath to the directory path specified at compile time
39+
#SET_TARGET_PROPERTIES(msexport PROPERTIES
40+
# INSTALL_RPATH_USE_LINK_PATH true
41+
#)
42+
43+
# Uncomment this to set runpath relative to executable
44+
#SET_TARGET_PROPERTIES(msexport PROPERTIES
45+
# LINK_FLAGS "-Wl,-rpath,'\$\$ORIGIN/../lib'"
46+
#)
47+
48+
3249
TARGET_LINK_LIBRARIES (msexport
3350
${QT_LIBRARIES}
3451
${PYTHON_LIBRARIES}

0 commit comments

Comments
 (0)
Please sign in to comment.