Skip to content
Permalink
Browse files
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 github-actions[bot] committed Jul 29, 2021
1 parent 3e6d03b commit a9d8466691e54a78eb21d370b4235daa45f6e914
Showing with 6 additions and 0 deletions.
  1. +6 −0 cmake/FindProj.cmake
@@ -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}"

0 comments on commit a9d8466

Please sign in to comment.