Skip to content

Commit

Permalink
add framework path to link test to fix OS X SDK problem
Browse files Browse the repository at this point in the history
  • Loading branch information
kyngchaos committed Apr 3, 2013
1 parent 87572f7 commit 67a542b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmake/FindSPATIALITE.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ IF (SPATIALITE_FOUND)
ENDIF (NOT SPATIALITE_FIND_QUIETLY)

# Check for symbol gaiaDropTable
IF(APPLE)
# no extra LDFLAGS used in link test, may fail in OS X SDK
SET(CMAKE_REQUIRED_LIBRARIES "-F/Library/Frameworks" ${CMAKE_REQUIRED_LIBRARIES})
ENDIF(APPLE)
check_library_exists("${SPATIALITE_LIBRARY}" gaiaDropTable "" SPATIALITE_VERSION_GE_4_0_0)

ELSE (SPATIALITE_FOUND)
Expand Down

0 comments on commit 67a542b

Please sign in to comment.