Skip to content
Permalink
Browse files

Fix GEOS dev detection (fixes #11081)

  • Loading branch information
jef-n committed Aug 30, 2014
1 parent ce28dac commit 00ca017defb336e46cf773246b1ccb92aaf8540e
Showing with 1 addition and 1 deletion.
  1. +1 −1 cmake/FindGEOS.cmake
@@ -158,7 +158,7 @@ ENDIF(WIN32)

IF(GEOS_INCLUDE_DIR AND NOT GEOS_VERSION)
FILE(READ ${GEOS_INCLUDE_DIR}/geos_c.h VERSIONFILE)
STRING(REGEX MATCH "#define GEOS_VERSION \"[0-9]+\\.[0-9]+\\.[0-9]+\"" GEOS_VERSION ${VERSIONFILE})
STRING(REGEX MATCH "#define GEOS_VERSION \"[0-9]+\\.[0-9]+\\.[0-9]+(dev)?\"" GEOS_VERSION ${VERSIONFILE})
STRING(REGEX MATCH "[0-9]+\\.[0-9]\\.[0-9]+" GEOS_VERSION ${GEOS_VERSION})
ENDIF(GEOS_INCLUDE_DIR AND NOT GEOS_VERSION)

0 comments on commit 00ca017

Please sign in to comment.
You can’t perform that action at this time.