Skip to content
Permalink
Browse files
bundle libspatialindex in app
  • Loading branch information
kyngchaos committed May 3, 2012
1 parent 0bd078a commit 5f1c98d40e8a801923651f9142f4682e29aeae3f
Showing with 9 additions and 0 deletions.
  1. +9 −0 mac/cmake/2lib.cmake.in
@@ -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/.*")

0 comments on commit 5f1c98d

Please sign in to comment.