$OpenBSD: patch-cmake_FindGEOS_cmake,v 1.2 2009/09/06 11:19:17 landry Exp $ --- cmake/FindGEOS.cmake.orig Tue Apr 14 14:54:07 2009 +++ cmake/FindGEOS.cmake Thu Sep 3 20:17:54 2009 @@ -114,11 +114,7 @@ ELSE(WIN32) ENDIF (GEOS_LIB_NAME_WITH_PREFIX) #MESSAGE("DBG GEOS_LIB_NAME=${GEOS_LIB_NAME}") - IF (APPLE) - SET(GEOS_LIBRARY ${GEOS_LINK_DIRECTORIES}/lib${GEOS_LIB_NAME}.dylib CACHE STRING INTERNAL) - ELSE (APPLE) - SET(GEOS_LIBRARY ${GEOS_LINK_DIRECTORIES}/lib${GEOS_LIB_NAME}.so CACHE STRING INTERNAL) - ENDIF (APPLE) + FIND_LIBRARY(GEOS_LIBRARY NAMES geos_c PATHS ${LOCALBASE}/lib) #MESSAGE("DBG GEOS_LIBRARY=${GEOS_LIBRARY}") ELSE(GEOS_CONFIG)