Уникальность имён целей для проверки

This commit is contained in:
Andrei Astafev 2019-06-25 15:01:57 +03:00
parent 10567927a2
commit 4611d07a41
3 changed files with 5 additions and 5 deletions

View File

@ -10,10 +10,10 @@ function(add_clang_tidy_check)
if(CLANG_TIDY_FIX)
list(APPEND _args "-fix")
endif()
add_custom_target(clang-tidy-check
add_custom_target(clang-tidy-check-${_target}
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
COMMAND ${CLANG_TIDY_EXE} -extra-arg="-Wno-unknown-warning-option" -p ${CMAKE_BINARY_DIR} ${_sources})
add_dependencies(clang-tidy-check ${_target})
add_dependencies(clang-tidy-check-${_target} ${_target})
else()
message(WARNING "ClangTidy is not found")
endif()

View File

@ -6,10 +6,10 @@ function(add_clazy_check)
find_program(CLAZY_EXE
NAMES clazy-standalone)
if(CLAZY_EXE)
add_custom_target(clazy-check
add_custom_target(clazy-check-${_target}
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
COMMAND ${CLAZY_EXE} -checks=level2 -extra-arg="-Wno-unknown-warning-option" -p ${CMAKE_BINARY_DIR} ${_sources})
add_dependencies(clazy-check ${_target})
add_dependencies(clazy-check-${_target} ${_target})
else()
message(WARNING "Clazy is not found")
endif()

View File

@ -4,7 +4,7 @@ function(add_pvs_check)
include(PVS-Studio)
find_program(PVS_STUDIO_ANALYZER_EXE NAMES pvs-studio-analyzer)
if(PVS_STUDIO_ANALYZER_EXE)
pvs_studio_add_target(TARGET pvs-check
pvs_studio_add_target(TARGET pvs-check-${_target}
DEPENDS ${_target}
COMPILE_COMMANDS
HIDE_HELP