Commit 282da3ff authored by Simon Spannagel's avatar Simon Spannagel
Browse files

CMake: don't use color markup in clang-tidy - we don't find the errors then

parent 139a165a
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -150,7 +150,6 @@ IF(CLANG_TIDY AND CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
                    ${CLANG_TIDY}
                    --config-file=${CMAKE_SOURCE_DIR}/.clang-tidy
                    --header-filter=${CMAKE_SOURCE_DIR}
                    --use-color
                    -p=${CMAKE_BINARY_DIR}
                    ${srcfile}
                    | tee -a ${CMAKE_BINARY_DIR}/check_lint_diff_file.txt)
@@ -159,7 +158,8 @@ IF(CLANG_TIDY AND CMAKE_CXX_COMPILER_ID STREQUAL "Clang")

        ADD_CUSTOM_TARGET(
            check-lint-diff
            COMMAND > ${CMAKE_BINARY_DIR}/check_lint_diff_file.txt ${COMMANDS}
            COMMAND > ${CMAKE_BINARY_DIR}/check_lint_diff_file.txt
            ${COMMANDS}
            COMMAND ! grep -c ": error: " ${CMAKE_BINARY_DIR}/check_lint_diff_file.txt > /dev/null
            COMMENT "Checking for problems in source files")
    ENDIF()