mirror of
https://github.com/ttroy50/cmake-examples.git
synced 2025-12-18 20:24:35 +03:00
spelling fixes
This commit is contained in:
@@ -61,7 +61,7 @@ $ wget https://github.com/danmar/cppcheck/archive/1.79.tar.gz \
|
||||
|
||||
## Adding Custom Package Modules
|
||||
|
||||
As with the previous example I use a custom module to find CppCheck. This version is slightly different to the pervious one and
|
||||
As with the previous example I use a custom module to find CppCheck. This version is slightly different to the previous one and
|
||||
will automatically add a `make cppcheck-analysis` target.
|
||||
|
||||
[source,cmake]
|
||||
|
||||
@@ -41,7 +41,7 @@ if(CPPCHECK_BIN)
|
||||
set(CPPCHECK_THREADS_ARG "-j4" CACHE STRING "The number of threads to use")
|
||||
set(CPPCHECK_PROJECT_ARG "--project=${PROJECT_BINARY_DIR}/compile_commands.json")
|
||||
set(CPPCHECK_BUILD_DIR_ARG "--cppcheck-build-dir=${PROJECT_BINARY_DIR}/analysis/cppcheck" CACHE STRING "The build directory to use")
|
||||
# Don't show thise errors
|
||||
# Don't show these errors
|
||||
if(EXISTS "${CMAKE_SOURCE_DIR}/.cppcheck_suppressions")
|
||||
set(CPPCHECK_SUPPRESSIONS "--suppressions-list=${CMAKE_SOURCE_DIR}/.cppcheck_suppressions" CACHE STRING "The suppressions file to use")
|
||||
else()
|
||||
|
||||
Reference in New Issue
Block a user