From feefcc52be9f9da29a627e7132415a9ef6423e7e Mon Sep 17 00:00:00 2001 From: Sergio Martins Date: Sat, 29 Nov 2025 03:35:51 -0500 Subject: [PATCH] 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 https://github.com/KDAB/GammaRay/issues/1102 --- .github/workflows/nightly.yml | 2 +- CMakeLists.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 9b88f307..f3d7a1f7 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -65,4 +65,4 @@ jobs: - name: Run cppcheck if: ${{ matrix.config.name == 'clazy' }} - run: cmake --build ./build/${{ matrix.config.name }} --preset ${{ matrix.config.name }} --target cppcheck + run: cmake --build ./build/${{ matrix.config.name }} --preset ${{ matrix.config.name }} --target kdsme_cppcheck diff --git a/CMakeLists.txt b/CMakeLists.txt index e83c0fc0..f75ba38a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -423,7 +423,7 @@ endif() feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES) add_custom_target( - cppcheck + kdsme_cppcheck USES_TERMINAL WORKING_DIRECTORY ${PROJECT_BINARY_DIR} COMMENT "run cppcheck on source files"