Skip to content

Commit

Permalink
Conditional use of qtSql lib
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@7171 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
timlinux committed Aug 29, 2007
1 parent f03bfe0 commit d3e6a89
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
6 changes: 6 additions & 0 deletions src/core/CMakeLists.txt
Expand Up @@ -158,6 +158,12 @@ TARGET_LINK_LIBRARIES(qgis_core
${GDAL_LIBRARY}
${PLATFORM_LIBRARIES}
)
#work aroud for the fact that qt3 support on mac is linked ot qsql
IF (APPLE)
TARGET_LINK_LIBRARIES(qgis_core
${QT_QTSQL_LIBRARY}
)
ENDIF (APPLE)

INSTALL(TARGETS qgis_core
RUNTIME DESTINATION ${QGIS_BIN_DIR}
Expand Down
9 changes: 8 additions & 1 deletion src/gui/CMakeLists.txt
Expand Up @@ -61,7 +61,6 @@ ADD_DEPENDENCIES(qgis_gui ui)
TARGET_LINK_LIBRARIES(qgis_gui
${QT_QTGUI_LIBRARY}
${QT_QTXML_LIBRARY}
${QT_QTSQL_LIBRARY}
${QT_QTSVG_LIBRARY}
${QT_QTNETWORK_LIBRARY}
${QT_QTMAIN_LIBRARY}
Expand All @@ -70,6 +69,14 @@ TARGET_LINK_LIBRARIES(qgis_gui
qgis_core
)

#work aroud for the fact that qt3 support on mac is linked ot qsql
IF (APPLE)
TARGET_LINK_LIBRARIES(qgis_gui
${QT_QTSQL_LIBRARY}
)
ENDIF (APPLE)


INSTALL(TARGETS qgis_gui
RUNTIME DESTINATION ${QGIS_BIN_DIR}
LIBRARY DESTINATION lib)
Expand Down

0 comments on commit d3e6a89

Please sign in to comment.