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 nyalldawson committed Feb 23, 2021
1 parent a341543 commit fc1ac8bef8dcc3194857ecd32519aca4867b4fa1
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 fc1ac8b

Please sign in to comment.