This commit is contained in:
2022-10-07 11:22:07 +03:00
parent 8c57311bb0
commit 0f2d983a15
9 changed files with 21 additions and 13 deletions

View File

@ -48,7 +48,11 @@ function(myxx)
myxx_code_coverage(${iter})
myxx_analyze_clang_tidy(${iter})
myxx_analyze_clang_check(${iter})
myxx_analyze_clazy(${iter})
if(MYXX_CMAKE_CLAZY_FIX)
myxx_analyze_clazy(${iter} FIX)
else()
myxx_analyze_clazy(${iter})
endif()
myxx_analyze_pvs_studio(${iter})
myxx_add_sanitizers(${iter})
endif()

View File

@ -1,4 +1,4 @@
set(MYXX_CMAKE_PACKAGE_VERSION "2.0.5")
set(MYXX_CMAKE_PACKAGE_VERSION "2.0.6")
if(MYXX_CMAKE_PACKAGE_VERSION VERSION_LESS PACKAGE_FIND_VERSION)
set(PACKAGE_VERSION_COMPATIBLE FALSE)
else()

View File

@ -35,7 +35,7 @@ function(myxx_analyze_pvs_studio target)
endif()
pvs_studio_add_target(TARGET ${target}-analyze-pvs-studio
ANALYZE ${target} RECURSIVE
ANALYZE ${target}
HIDE_HELP
OUTPUT
FORMAT errorfile

View File

@ -40,6 +40,7 @@ if(MYX_CMAKE_WARNINGS_NORMAL)
check_enable_cxx_compiler_flag(-fdiagnostics-show-template-tree)
if(NOT MYX_CMAKE_WARNINGS_VERBOSE)
check_enable_cxx_compiler_flag(-Wno-float-conversion)
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
if(CMAKE_CXX_COMPILER_VERSION VERSION_GREATER "5.999")
check_enable_cxx_compiler_flag(-Wno-attributes)