mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
Defined application services linkage for mac since we dont just globally 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/qgis@8279 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
parent
b43d6595af
commit
a1008e1dd0
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user