From 605c80e6bf2157ff1e2877083b14648899e3e469 Mon Sep 17 00:00:00 2001 From: Tal Regev Date: Tue, 22 Aug 2023 20:00:04 +0300 Subject: [PATCH] include (FindGDAL) first --- cmake/SearchForStuff.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake/SearchForStuff.cmake b/cmake/SearchForStuff.cmake index 3ccbe01be8..d16bd5f7f3 100644 --- a/cmake/SearchForStuff.cmake +++ b/cmake/SearchForStuff.cmake @@ -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")