Skip to content
Snippets Groups Projects
Unverified Commit d02a82b7 authored by Jens Georg's avatar Jens Georg Committed by GitHub
Browse files

coding-style-check: Skip if clang-format not found (#23)

parent 71381a07
No related branches found
No related tags found
1 merge request!3update project template
......@@ -18,6 +18,7 @@ if which clang-format-14 > /dev/null; then
echo "Code formatting incorrect!"
fi
else
echo 77 > "${ERRFILE}"
echo "WARNING: clang-format-14 not found, code formatting not checked!"
fi
......
......@@ -20,3 +20,6 @@
enable_testing()
add_test(NAME coding_style COMMAND ${CMAKE_SOURCE_DIR}/cmake/check-coding-style.sh ${CMAKE_BINARY_DIR}
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR})
# coding style will return 77 if no clang-format-14 could be found AND none of the other tests fail
set_property(TEST coding_style PROPERTY SKIP_RETURN_CODE 77)
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