From 38e38bf3d309a82fa6f24ba139ec7ffb826f7607 Mon Sep 17 00:00:00 2001 From: Scott Giese Date: Sat, 22 Aug 2020 14:45:13 -0500 Subject: [PATCH] CMake Fix: FindGDAL FindPackageHandleStandardArgs.cmake is not located within simgear/CMakeModules. Use the normal CMake folder. --- CMakeModules/FindGDAL.cmake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeModules/FindGDAL.cmake b/CMakeModules/FindGDAL.cmake index fde84d48..cd8146b7 100644 --- a/CMakeModules/FindGDAL.cmake +++ b/CMakeModules/FindGDAL.cmake @@ -60,6 +60,8 @@ GDAL installation prefix. # #include "gdal.h" +include(FindPackageHandleStandardArgs) + find_path(GDAL_INCLUDE_DIR gdal.h HINTS ENV GDAL_DIR @@ -149,7 +151,6 @@ else () set(GDAL_VERSION GDAL_VERSION-NOTFOUND) endif () -include(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake) FIND_PACKAGE_HANDLE_STANDARD_ARGS(GDAL VERSION_VAR GDAL_VERSION REQUIRED_VARS GDAL_LIBRARY GDAL_INCLUDE_DIR)