Skip to content
Permalink
Browse files
FindProj.cmake: ban PROJ 6.3.0
It has been found to causes crashes when running msautotest
  • Loading branch information
rouault committed Feb 13, 2020
1 parent 450a951 commit 2847e414b36086c1345ac74c93f46618631e6056
Showing 1 changed file with 5 additions and 0 deletions.
@@ -27,6 +27,11 @@ IF (PROJ_FOUND)
STRING(REGEX REPLACE "^.*PROJ_VERSION_PATCH +([0-9]+).*$" "\\1" PROJ_VERSION_PATCH "${proj_version}")

MESSAGE(STATUS "Found Proj ${PROJ_VERSION_MAJOR}.${PROJ_VERSION_MINOR}")

IF ((PROJ_VERSION_MAJOR EQUAL 6) AND (PROJ_VERSION_MINOR EQUAL 3) AND (PROJ_VERSION_PATCH EQUAL 0))
MESSAGE (FATAL_ERROR "MapServer known to crash with PROJ 6.3.0. Use 6.3.1 or higher.")
ENDIF ((PROJ_VERSION_MAJOR EQUAL 6) AND (PROJ_VERSION_MINOR EQUAL 3) AND (PROJ_VERSION_PATCH EQUAL 0))

ADD_DEFINITIONS(-DPROJ_VERSION_MAJOR=${PROJ_VERSION_MAJOR})
ELSE()
MESSAGE(STATUS "Found Proj 4.x")

0 comments on commit 2847e41

Please sign in to comment.