• lysdexicOPM
    link
    fedilink
    English
    arrow-up
    3
    ·
    1 year 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.