Add clang analyze flags

This commit is contained in:
Alex D. 2021-01-03 20:46:20 +00:00
parent 6081dc6372
commit 28ee114457
Signed by: caskd
GPG Key ID: F92BA85F61F4C173
1 changed files with 3 additions and 0 deletions

View File

@ -128,6 +128,9 @@ elseif (CMAKE_C_COMPILER_ID STREQUAL "Clang")
if (CODE_COVERAGE)
add_compile_options(-fprofile-instr-generate -fcoverage-mapping)
endif()
if (CODE_ANALYZER)
add_compile_options(--analyze)
endif()
endif()
separate_arguments(UIRC_HEADERS)