Skip to content
Permalink
Browse files
Defined application services linkage for mac since we dont just globa…
…lly link to all qgis libs now (which used to give us ap services libs in the process). Applies to OS X only.

git-svn-id: http://svn.osgeo.org/qgis/trunk@8279 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
timlinux committed Mar 26, 2008
1 parent 66fde22 commit ac3e910a05a0d88eefb720dc26915d562173814a
Showing with 6 additions and 0 deletions.
  1. +2 −0 CMakeLists.txt
  2. +4 −0 src/app/CMakeLists.txt
@@ -196,6 +196,8 @@ ELSE (WIN32)
SET (CMAKE_INSTALL_PREFIX ${CMAKE_INSTALL_PREFIX}/${PROJECT_NAME}.app/Contents/MacOS)
# path for library references
SET (CMAKE_INSTALL_NAME_DIR @executable_path/lib)
#this will define ${APP_SERVICES_LIBRARY}
FIND_LIBRARY(APP_SERVICES_LIBRARY ApplicationServices )
ENDIF (APPLE)

# common for MAC and UNIX
@@ -246,6 +246,10 @@ IF (MSVC)
TARGET_LINK_LIBRARIES(qgis qtmain)
ENDIF (MSVC)

IF (APPLE)
TARGET_LINK_LIBRARIES(qgis APP_SERVICES_LIBRARY )
ENDIF (APPLE)

SET_TARGET_PROPERTIES(qgis PROPERTIES
INSTALL_RPATH ${QGIS_LIB_DIR}
INSTALL_RPATH_USE_LINK_PATH true

0 comments on commit ac3e910

Please sign in to comment.