Skip to content

Commit

Permalink
include (FindGDAL) first
Browse files Browse the repository at this point in the history
  • Loading branch information
talregev committed Aug 22, 2023
1 parent 72ae3b7 commit 605c80e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmake/SearchForStuff.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -689,10 +689,10 @@ endif ()

########################################
# Find gdal
find_package(GDAL CONFIG)
include (FindGDAL)
if ("${GDAL_LIBRARY}" STREQUAL "")
unset(GDAL_FOUND CACHE)
include (FindGDAL)
find_package(GDAL CONFIG)
endif()
if (NOT GDAL_FOUND)
message (STATUS "Looking for libgdal - not found")
Expand Down

0 comments on commit 605c80e

Please sign in to comment.