Skip to content

Commit a0562f8

Browse files
authored
Merge pull request #832 from apache/hotfix/limit-gcc-anayzer-C
Hotfix/Limit gcc analyzer to C.
2 parents 78dadfa + d62160c commit a0562f8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmake/celix_project/CelixProject.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,8 @@ if (ENABLE_GCC_ANALYZER)
9898
"-Wno-analyzer-fd-leak"
9999
"-Wno-analyzer-shift-count-negative"
100100
)
101-
add_compile_options(${ANALYZER_FLAGS})
102-
else()
101+
add_compile_options("$<$<COMPILE_LANGUAGE:C>:${ANALYZER_FLAGS}>")
102+
else()
103103
message(WARNING "ENABLE_GCC_ANALYZER is only supported with GCC ")
104104
endif()
105105
endif()

0 commit comments

Comments
 (0)