diff --git a/CMLibCodeAnalysisClangTidy.cmake b/CMLibCodeAnalysisClangTidy.cmake index 80fc6a0..591235d 100644 --- a/CMLibCodeAnalysisClangTidy.cmake +++ b/CMLibCodeAnalysisClangTidy.cmake @@ -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() diff --git a/CMLibCodeAnalysisClazy.cmake b/CMLibCodeAnalysisClazy.cmake index ee89cce..dba4842 100644 --- a/CMLibCodeAnalysisClazy.cmake +++ b/CMLibCodeAnalysisClazy.cmake @@ -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() diff --git a/CMLibCodeAnalysisPvsStudio.cmake b/CMLibCodeAnalysisPvsStudio.cmake index 93d6cff..361e257 100644 --- a/CMLibCodeAnalysisPvsStudio.cmake +++ b/CMLibCodeAnalysisPvsStudio.cmake @@ -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