Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add support for PROJ 8.0.0 in FindProj.cmake.
proj_api.h is no longer available in PROJ 8.0.0, use proj.h instead.

Fixes: #41735
  • Loading branch information
sebastic authored and nyalldawson committed Feb 23, 2021
1 parent a341543 commit fc1ac8b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cmake/FindProj.cmake
Expand Up @@ -40,6 +40,12 @@ FIND_PATH(PROJ_INCLUDE_DIR proj_api.h
"$ENV{INCLUDE}"
"$ENV{LIB_DIR}/include"
)
IF (NOT PROJ_INCLUDE_DIR)
FIND_PATH(PROJ_INCLUDE_DIR proj.h
"$ENV{INCLUDE}"
"$ENV{LIB_DIR}/include"
)
ENDIF (NOT PROJ_INCLUDE_DIR)

FIND_LIBRARY(PROJ_LIBRARY NAMES proj_i proj PATHS
"$ENV{LIB}"
Expand Down

0 comments on commit fc1ac8b

Please sign in to comment.