diff --git a/cmake/celix_project/CelixProject.cmake b/cmake/celix_project/CelixProject.cmake index cec2ec133..bd7e7f29d 100644 --- a/cmake/celix_project/CelixProject.cmake +++ b/cmake/celix_project/CelixProject.cmake @@ -98,8 +98,8 @@ if (ENABLE_GCC_ANALYZER) "-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()