Skip to content

Commit 832945a

Browse files
sebasticnyalldawson
authored andcommitted
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
1 parent 0628d70 commit 832945a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

cmake/FindProj.cmake

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,12 @@ FIND_PATH(PROJ_INCLUDE_DIR proj_api.h
4040
"$ENV{INCLUDE}"
4141
"$ENV{LIB_DIR}/include"
4242
)
43+
IF (NOT PROJ_INCLUDE_DIR)
44+
FIND_PATH(PROJ_INCLUDE_DIR proj.h
45+
"$ENV{INCLUDE}"
46+
"$ENV{LIB_DIR}/include"
47+
)
48+
ENDIF (NOT PROJ_INCLUDE_DIR)
4349

4450
FIND_LIBRARY(PROJ_LIBRARY NAMES proj_i proj PATHS
4551
"$ENV{LIB}"

0 commit comments

Comments
 (0)