Skip to content

Commit 64b4fe3

Browse files
committed
cmake: Rename 'cppcheck' target to 'kdsme_cppcheck'
So it doesn't clash when used as a submodule of a project that also defines this target. For KDAB/GammaRay#1102
1 parent 91767b8 commit 64b4fe3

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/nightly.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,4 +65,4 @@ jobs:
6565

6666
- name: Run cppcheck
6767
if: ${{ matrix.config.name == 'clazy' }}
68-
run: cmake --build ./build/${{ matrix.config.name }} --preset ${{ matrix.config.name }} --target cppcheck
68+
run: cmake --build ./build/${{ matrix.config.name }} --preset ${{ matrix.config.name }} --target kdsme_cppcheck

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ endif()
423423
feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)
424424

425425
add_custom_target(
426-
cppcheck
426+
kdsme_cppcheck
427427
USES_TERMINAL
428428
WORKING_DIRECTORY ${PROJECT_BINARY_DIR}
429429
COMMENT "run cppcheck on source files"

0 commit comments

Comments
 (0)