We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 78dadfa commit d62160cCopy full SHA for d62160c
cmake/celix_project/CelixProject.cmake
@@ -98,8 +98,8 @@ if (ENABLE_GCC_ANALYZER)
98
"-Wno-analyzer-fd-leak"
99
"-Wno-analyzer-shift-count-negative"
100
)
101
- add_compile_options(${ANALYZER_FLAGS})
102
- else()
+ add_compile_options("$<$<COMPILE_LANGUAGE:C>:${ANALYZER_FLAGS}>")
+ else()
103
message(WARNING "ENABLE_GCC_ANALYZER is only supported with GCC ")
104
endif()
105
0 commit comments