diff --git a/CMakeLists.txt b/CMakeLists.txt index b3d7efe..75dd988 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)