diff --git a/CMLibCodeAnalysisPvsStudio.cmake b/CMLibCodeAnalysisPvsStudio.cmake index c7bac77..a8e9e09 100644 --- a/CMLibCodeAnalysisPvsStudio.cmake +++ b/CMLibCodeAnalysisPvsStudio.cmake @@ -14,7 +14,8 @@ function(add_pvs_check) HIDE_HELP OUTPUT FORMAT errorfile CONFIG "${CMAKE_BINARY_DIR}/PVS-Studio-${_target}.cfg" - CFG_TEXT "analysis-mode=29" + ARGS --analysis-mode 29 + --exclude-path ${CMAKE_CURRENT_BINARY_DIR}/${_target}_autogen MODE GA:1,2,3;64:1;OP:1,2;CS:1,2) add_dependencies(pvs-check pvs-check-${_target}) else()