Skip to content

Use CMake option() for USE_GEOCAD#54

Merged
wdconinc merged 1 commit into
mainfrom
copilot/add-use-geocad-cmake-option
May 22, 2026
Merged

Use CMake option() for USE_GEOCAD#54
wdconinc merged 1 commit into
mainfrom
copilot/add-use-geocad-cmake-option

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 17, 2026

Summary

Replace the top-level USE_GEOCAD cache variable declaration with an explicit CMake option() call.

Changes

  • Updated /home/runner/work/npsim/npsim/CMakeLists.txt:
    • set(USE_GEOCAD ON CACHE BOOL ...)option(USE_GEOCAD ... ON)

Validation

  • Ran cmake -S . -B build before and after change.
  • Configure fails in this environment due to missing DD4hepConfig.cmake (pre-existing environment dependency), unchanged by this patch.
  • Ran CodeQL checker (no analyzable code changes detected).

Agent-Logs-Url: https://github.com/eic/npsim/sessions/d7bdb98f-cf21-46af-9a45-881bb10dddb2

Co-authored-by: wdconinc <4656391+wdconinc@users.noreply.github.com>
Copilot AI requested a review from wdconinc May 17, 2026 18:30
@wdconinc wdconinc marked this pull request as ready for review May 17, 2026 18:31
Copilot AI review requested due to automatic review settings May 17, 2026 18:31
@wdconinc wdconinc enabled auto-merge (squash) May 17, 2026 18:31
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Replaces a cache variable declaration with the idiomatic CMake option() call for USE_GEOCAD, preserving the default value (ON) and description.

Changes:

  • Switch set(USE_GEOCAD ON CACHE BOOL ...) to option(USE_GEOCAD ... ON) in the top-level CMakeLists.txt.

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

Copilot AI temporarily deployed to github-pages May 17, 2026 18:59 Inactive
@wdconinc wdconinc requested a review from veprbl May 17, 2026 20:13
@wdconinc
Copy link
Copy Markdown
Contributor

wdconinc commented May 17, 2026

Likely will conflict with #50 after merge.

@wdconinc wdconinc disabled auto-merge May 22, 2026 21:49
@wdconinc wdconinc merged commit b99655b into main May 22, 2026
32 checks passed
@wdconinc wdconinc deleted the copilot/add-use-geocad-cmake-option branch May 22, 2026 21:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants