Skip to content

Commit

Permalink
FindProj.cmake: ban PROJ 6.3.0
Browse files Browse the repository at this point in the history
It has been found to causes crashes when running msautotest
  • Loading branch information
rouault committed Feb 13, 2020
1 parent 450a951 commit 2847e41
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmake/FindProj.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 2847e41

Please sign in to comment.