Skip to content
Snippets Groups Projects
Commit 6037cd0a authored by Guillaume Pasero's avatar Guillaume Pasero
Browse files

ENH: check that gdal-config is present before calling test script

parent 67354896
No related branches found
No related tags found
No related merge requests found
......@@ -12,7 +12,10 @@ endif()
if(UNIX)
message(STATUS "Check if Gdal qualifies for Orfeo ToolBox")
if("x${GDAL_CONFIG}" STREQUAL "x")
message(FATAL_ERROR "Cannot find gdal-config executable. Set GDAL_CONFIG")
endif()
# Prepare bash script
configure_file(${CMAKE_SOURCE_DIR}/Modules/ThirdParty/GDAL/gdalTest.sh.in ${CMAKE_CURRENT_BINARY_DIR}/gdalTest.sh @ONLY)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment