Skip to content

Commit c66a6a9

Browse files
committed
[cppcheck] Don't use --project together with source files
``` cppcheck: error: --project cannot be used in conjunction with source files. ```
1 parent 72b6efe commit c66a6a9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,7 @@ if (found_cppcheck)
129129

130130
# unusedFunction can't be used with -j for some reason.
131131
cppcheck --enable=all -j ${CPU_COUNT} --std=c++17 --language=c++ --inconclusive
132-
--project=${CMAKE_CURRENT_BINARY_DIR}/compile_commands.json
133-
${CMAKE_SOURCE_DIR}/sigs.h --xml 2> cppcheck.xml &&
132+
--project=${CMAKE_CURRENT_BINARY_DIR}/compile_commands.json --xml 2> cppcheck.xml &&
134133
python3 ${CMAKE_SOURCE_DIR}/scripts/cppcheck-htmlreport.py --file=cppcheck.xml --report-dir=cppcheck
135134

136135
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}

0 commit comments

Comments
 (0)