Skip to content
Snippets Groups Projects
Commit 8ac14b58 authored by Santiago Ospina De Los Ríos's avatar Santiago Ospina De Los Ríos
Browse files

Print cmake log error on failure

parent 704e47b6
No related branches found
No related tags found
1 merge request!49Resolve "Finish installation and usage instruction on the documentation"
......@@ -27,6 +27,10 @@ print_opts_file() {
cat "${DUNE_OPTIONS_FILE}"
}
print_cmake_error() {
cat "${BUILD_PATH}/CMakeFiles/CMakeError.log"
}
cleanup() {
echo "removig intermediate results"
rm -rf $BUILD_PATH
......@@ -35,7 +39,7 @@ cleanup() {
# set up verbose output in case of failure
ONFAILURE_PROG="git gcc g++ python pip python3 pip3 cmake $SUDOCMD"
ONFAILURE_VARS="PATH SUDOCMD DUNE_OPTIONS_FILE CMAKE_FLAGS"
ONFAILURE_CMD="ls cleanup print_opts_file"
ONFAILURE_CMD="ls cleanup print_opts_file print_cmake_error"
trap onfailure EXIT
......
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