Commit bc5c9527 authored by Antoine Regimbeau's avatar Antoine Regimbeau

Try to catch error in superbuild

parent b475d8f4
Pipeline #951 passed with stages
in 54 minutes and 13 seconds
......@@ -134,13 +134,16 @@ endif()
ctest_build(BUILD "${CTEST_BINARY_DIRECTORY}"
TARGET "OTB_DEPENDS"
RETURN_VALUE _build_rv
NUMBER_ERRORS _build_nb_err
CAPTURE_CMAKE_ERROR _build_error
)
if ( NOT _build_rv EQUAL 0 )
message( "Status for build:" )
message("_build_rv=${_build_rv}")
message("_build_nb_err=${_build_nb_err}")
message("_build_error=${_build_error}")
if ( CAPTURE_CMAKE_ERROR EQUAL -1 )
ctest_submit()
message( SEND_ERROR "An error occurs during ctest_build.")
return()
message( FATAL_ERROR "An error occurs during ctest_build.")
endif()
ctest_submit()
......
......@@ -24,7 +24,7 @@ set ( cmake_configure_option
CMAKE_INSTALL_PREFIX:PATH=${CTEST_INSTALL_DIRECTORY}")
set ( temporary_option
"OTB_USE_LIBKML=OFF")
"OTB_USE_LIBKML=ON")
set(concat_options
"${cmake_configure_option}
......
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