this post was submitted on 13 Nov 2023
13 points (93.3% liked)

C++

1755 readers
1 users here now

The center for all discussion and news regarding C++.

Rules

founded 1 year ago
MODERATORS
top 1 comments
sorted by: hot top controversial new old
[–] lysdexic 3 points 11 months ago

CMake also helps integrate Cppcheck by setting a single CMake variable when configuring a CMake project: CMAKE_C_CPPCHECK and/or CMAKE_CXX_CPPCHECK.

$ /usr/bin/cmake -DCMAKE_CXX_CPPCHECK:FILEPATH=cppcheck -B./build
$ /usr/bin/cmake --build ./build

Low-effort, high-reward.