Commit 6037cd0a authored by Guillaume Pasero's avatar Guillaume Pasero

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

parent 67354896
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment