mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-14 00:07:35 -04:00
cmake: report geos version with c-api header only (followup 0529f117)
This commit is contained in:
parent
0837945247
commit
1692cc36b9
@ -157,8 +157,9 @@ ELSE(WIN32)
|
||||
ENDIF(WIN32)
|
||||
|
||||
IF(GEOS_INCLUDE_DIR AND NOT GEOS_VERSION)
|
||||
FILE(READ ${GEOS_INCLUDE_DIR}/geos/version.h VERSIONFILE)
|
||||
STRING(REGEX MATCH "[0-9]+\\.[0-9]+\\.[0-9]+" GEOS_VERSION ${VERSIONFILE})
|
||||
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 "[0-9]+\\.[0-9]\\.[0-9]+" GEOS_VERSION ${GEOS_VERSION})
|
||||
ENDIF(GEOS_INCLUDE_DIR AND NOT GEOS_VERSION)
|
||||
|
||||
IF (GEOS_INCLUDE_DIR AND GEOS_LIBRARY)
|
||||
|
Loading…
x
Reference in New Issue
Block a user