CMake Fix: FindGDAL
FindPackageHandleStandardArgs.cmake is not located within simgear/CMakeModules. Use the normal CMake folder.
This commit is contained in:
parent
e85a3207ac
commit
38e38bf3d3
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user