From 58acf3e337fca0fbce0c387c946c75e0625f5851 Mon Sep 17 00:00:00 2001 From: Alex Denes Date: Sun, 3 Jan 2021 20:46:04 +0000 Subject: [PATCH] Add clang analyze flags --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1ef500a..1683120 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -66,6 +66,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() set_target_properties(uircd PROPERTIES