Skip to content

Commit

Permalink
Bundle libminizip on Mac if used by osgdb_kml plugin of osgearth
Browse files Browse the repository at this point in the history
  • Loading branch information
dakcarto committed May 30, 2014
1 parent ca6d4d9 commit 592356a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions mac/cmake/1osg.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -104,4 +104,13 @@ IF (EXISTS "${TINY}")
INSTALLNAMETOOL_CHANGE ("${TINY_CHG}" "${TINY_CHG_TO}" "${QPLUGDIR}/libglobeplugin.so")
ENDIF ()

GET_INSTALL_NAME ("${OSG_PLUGINS_PATH}/osgdb_kml.so" "libminizip" MINI)
# MESSAGE (STATUS "libminizip path: ${MINI}")
IF (EXISTS "${MINI}")
SET (MINI_CHG "${MINI}")
SET (MINI_CHG_TO "${ATEXECUTABLE}/@QGIS_LIB_SUBDIR@/libminizip.dylib")
EXECUTE_PROCESS (COMMAND ditto ${QARCHS} "${MINI_CHG}" "${QLIBDIR}/libminizip.dylib")
INSTALLNAMETOOL_CHANGE ("${MINI_CHG}" "${MINI_CHG_TO}" "${QPLUGDIR}/../osgPlugins/osgdb_kml.so")
ENDIF ()

ENDIF (@OSGEARTH_FOUND@)

0 comments on commit 592356a

Please sign in to comment.