Skip to content

Commit

Permalink
bundle libspatialindex in app
Browse files Browse the repository at this point in the history
  • Loading branch information
kyngchaos committed May 3, 2012
1 parent 0bd078a commit 5f1c98d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions mac/cmake/2lib.cmake.in
Expand Up @@ -32,6 +32,15 @@ IF ("@POSTGRES_LIBRARY@" MATCHES ".*libpq.dylib")
ENDIF (INTLLIB)
ENDIF ()

# libspatialindex

IF ("@SPATIALINDEX_LIBRARY@" MATCHES ".*libspatialindex.dylib")
MESSAGE (STATUS "Copying libspatialindex and updating library paths...")
EXECUTE_PROCESS (COMMAND ditto ${QARCHS} "@SPATIALINDEX_LIBRARY@" "${QLIBDIR}/libspatialindex.dylib")
GET_INSTALL_NAME ("@SPATIALINDEX_LIBRARY@" "libspatialindex" SPILIB)
UPDATEQGISPATHS (${SPILIB} libspatialindex.dylib)
ENDIF ()

# libfcgi (non-system)

IF ("@FCGI_LIBRARY@" MATCHES ".*libfcgi.dylib" AND NOT "@FCGI_LIBRARY@" MATCHES "/usr/lib/.*")
Expand Down

0 comments on commit 5f1c98d

Please sign in to comment.