Skip to content
Permalink
Browse files
For 1.1 release we need geos 3.0.0 or later so make sure the user has…
… it.

GEOS 3 is required by PAL, simplify method of QgsGeometry and probably also spatialite.


git-svn-id: http://svn.osgeo.org/qgis/trunk@10562 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
wonder committed Apr 14, 2009
1 parent 94793e7 commit 5450e64b0735cc4defb72ddf30af5e4163a5bc37
Showing with 12 additions and 1 deletion.
  1. +12 −1 cmake/FindGEOS.cmake
@@ -53,7 +53,18 @@ ELSE(WIN32)
)
#MESSAGE("DBG GEOS_CONFIG ${GEOS_CONFIG}")

IF (GEOS_CONFIG)
IF (GEOS_CONFIG)

EXEC_PROGRAM(${GEOS_CONFIG}
ARGS --version
OUTPUT_VARIABLE GEOS_VERSION)
STRING(REGEX REPLACE "([0-9]+)\\.([0-9]+)\\.([0-9]+)" "\\1" GEOS_VERSION_MAJOR "${GEOS_VERSION}")
STRING(REGEX REPLACE "([0-9]+)\\.([0-9]+)\\.([0-9]+)" "\\2" GEOS_VERSION_MINOR "${GEOS_VERSION}")

IF (GEOS_VERSION_MAJOR LESS 3)
MESSAGE (FATAL_ERROR "GEOS version is too old (${GEOS_VERSION}). Use 3.0.0 or higher.")
ENDIF (GEOS_VERSION_MAJOR LESS 3)

# set INCLUDE_DIR to prefix+include
EXEC_PROGRAM(${GEOS_CONFIG}
ARGS --prefix

0 comments on commit 5450e64

Please sign in to comment.