Skip to content

Add sample CMake user preset for macOS development builds - #4

Open
raulizahi wants to merge 1 commit into
10-X-eng:feature/codex-kicad-10from
raulizahi:feature/macos-sample-preset
Open

Add sample CMake user preset for macOS development builds#4
raulizahi wants to merge 1 commit into
10-X-eng:feature/codex-kicad-10from
raulizahi:feature/macos-sample-preset

Conversation

@raulizahi

Copy link
Copy Markdown

Summary

  • Adds CMakeUserPresets.macos.sample.json, a copy-to-CMakeUserPresets.json sample capturing the working kichad-macos dev configuration (Ninja RelWithDebInfo, QA tests on, isolated kichad config dir, Homebrew keg pins: boost@1.85, protobuf@33, python@3.13, opencascade, libngspice).
  • Documents it in KICHAD.md under a new "macOS development build (experimental)" section, including the Boost 1.85-vs-1.90 pin rationale (Boost.Process v1 removal), Intel-vs-arm64 Homebrew paths, and the currently-manual gaps (bundle scaffolding, codex on PATH).
  • Keeps the tracked CMakePresets.json Linux-only per repo policy — the macOS preset remains opt-in user configuration.

Note: compiling this source line on macOS also needs the toolchain compat shims from #1; the preset itself is inert configuration and independent of that change.

Test plan

🤖 Generated with Claude Code

Document the kichad-macos configuration as a copy-in sample so the
tracked CMakePresets.json can stay Linux-only per policy. Covers the
Homebrew keg pins (boost@1.85, protobuf@33, python@3.13) and the known
gaps: the macos-build-compat shims and untracked bundle scaffolding.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings July 24, 2026 20:02

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

Adds an opt-in macOS development CMake user preset (kept out of tracked CMakePresets.json per repo policy) and documents how to use it for local macOS builds.

Changes:

  • Add CMakeUserPresets.macos.sample.json providing a kichad-macos configure/build/test preset for Homebrew-based macOS dev builds.
  • Document macOS development build usage and Homebrew dependency/pinning notes in KICHAD.md.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
KICHAD.md Documents experimental macOS dev build workflow and notes for the sample preset.
CMakeUserPresets.macos.sample.json Adds an opt-in macOS CMake user preset for configuring/building/testing KiChad with Homebrew deps.

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

Comment thread KICHAD.md
Comment on lines +74 to +75
- Building this source line on macOS requires the toolchain compatibility shims from the
`feature/macos-build-compat` branch until they are merged.
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.

2 participants