Add sample CMake user preset for macOS development builds - #4
Open
raulizahi wants to merge 1 commit into
Open
Conversation
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>
There was a problem hiding this comment.
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.jsonproviding akichad-macosconfigure/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 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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
CMakeUserPresets.macos.sample.json, a copy-to-CMakeUserPresets.jsonsample capturing the workingkichad-macosdev configuration (Ninja RelWithDebInfo, QA tests on, isolatedkichadconfig dir, Homebrew keg pins:boost@1.85,protobuf@33,python@3.13,opencascade,libngspice).KICHAD.mdunder 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,codexonPATH).CMakePresets.jsonLinux-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
python3 -c 'import json; json.load(...)'on the sample (valid JSON).🤖 Generated with Claude Code