Skip to content

Commit 0b279e5

Browse files
cmake codechecker test fix
1 parent a4e9cd0 commit 0b279e5

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

CMakeLists.txt

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -141,15 +141,16 @@ add_custom_target(
141141
# Extra, option to use clang (et al) front-end, CodeChecker
142142
# Use clang-7, clang-tidy-7 or later
143143
# pip3 install --user codechecker
144+
# (If "codechecker" not found try "CodeChecker")
144145
add_custom_target(
145146
codechecker_build
146-
COMMAND CodeChecker log --build "make";
147+
COMMAND codechecker log --build "make";
147148
--output "./compile_commands.json";
148149
)
149150
add_custom_target(
150151
codechecker_analyze
151152
DEPENDS codechecker_build
152-
COMMAND CodeChecker analyze "compile_commands.json" -o reports;
153+
COMMAND codechecker analyze "compile_commands.json" -o reports;
153154
--enable sensitive;
154155
--clean;
155156
#--ctu;
@@ -158,10 +159,10 @@ add_custom_target(
158159
add_custom_target(
159160
codechecker
160161
DEPENDS codechecker_analyze
161-
COMMAND CodeChecker parse ./reports;
162+
COMMAND codechecker parse ./reports;
162163
)
163164
add_custom_target(
164165
codechecker-html
165166
DEPENDS codechecker_analyze
166-
COMMAND CodeChecker parse ./reports -e html -o ./reports_html
167+
COMMAND codechecker parse ./reports -e html -o ./reports_html
167168
)

0 commit comments

Comments
 (0)