Skip to content

Avoid needless CTest targets - #2776

Open
scivision wants to merge 1 commit into
ninja-build:masterfrom
scivision:ctest-enable
Open

Avoid needless CTest targets#2776
scivision wants to merge 1 commit into
ninja-build:masterfrom
scivision:ctest-enable

Conversation

@scivision

Copy link
Copy Markdown
Contributor

use enable_testing() to avoid spurious test targets, as we aren't using CDash or those targets

Copilot AI review requested due to automatic review settings May 15, 2026 23:09

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the top-level CMake configuration to avoid generating unnecessary CTest/CDash-related build targets by switching away from include(CTest) and enabling testing more narrowly.

Changes:

  • Replace include(CTest) usage with enable_testing() under if(BUILD_TESTING).
  • Modernize the perf-test loop to use foreach(... IN ITEMS ...).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread CMakeLists.txt
use enable_testing() to avoid spurious test targets,
as we aren't using CDash or those targets
@jhasse

jhasse commented May 21, 2026

Copy link
Copy Markdown
Collaborator

I don't understand this, sorry. Can you elaborate why this is an improvement?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants