diff --git a/cmake/celix_project/CelixProject.cmake b/cmake/celix_project/CelixProject.cmake index cec2ec133..e6f181887 100644 --- a/cmake/celix_project/CelixProject.cmake +++ b/cmake/celix_project/CelixProject.cmake @@ -97,9 +97,9 @@ if (ENABLE_GCC_ANALYZER) "-Wno-analyzer-use-of-uninitialized-value" "-Wno-analyzer-fd-leak" "-Wno-analyzer-shift-count-negative" - ) - add_compile_options(${ANALYZER_FLAGS}) - else() + ) + add_compile_options("$<$:${ANALYZER_FLAGS}>") + else() message(WARNING "ENABLE_GCC_ANALYZER is only supported with GCC ") endif() endif()