CMake Fix: FindGDAL

FindPackageHandleStandardArgs.cmake  is not located within simgear/CMakeModules.
Use the normal CMake folder.
This commit is contained in:
Scott Giese 2020-08-22 14:45:13 -05:00
parent e85a3207ac
commit 38e38bf3d3

View File

@ -60,6 +60,8 @@ GDAL installation prefix.
# #
#include "gdal.h" #include "gdal.h"
include(FindPackageHandleStandardArgs)
find_path(GDAL_INCLUDE_DIR gdal.h find_path(GDAL_INCLUDE_DIR gdal.h
HINTS HINTS
ENV GDAL_DIR ENV GDAL_DIR
@ -149,7 +151,6 @@ else ()
set(GDAL_VERSION GDAL_VERSION-NOTFOUND) set(GDAL_VERSION GDAL_VERSION-NOTFOUND)
endif () endif ()
include(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(GDAL FIND_PACKAGE_HANDLE_STANDARD_ARGS(GDAL
VERSION_VAR GDAL_VERSION VERSION_VAR GDAL_VERSION
REQUIRED_VARS GDAL_LIBRARY GDAL_INCLUDE_DIR) REQUIRED_VARS GDAL_LIBRARY GDAL_INCLUDE_DIR)