Skip to content

Prefer fetching Catch2 from source when on MacOS doing a universal build#270

Merged
cboulay merged 1 commit intodevfrom
catch2_fetch_on_universal
Apr 21, 2026
Merged

Prefer fetching Catch2 from source when on MacOS doing a universal build#270
cboulay merged 1 commit intodevfrom
catch2_fetch_on_universal

Conversation

@cboulay
Copy link
Copy Markdown
Collaborator

@cboulay cboulay commented Apr 21, 2026

Recent change to find Catch2 breaks MacOS universal builds when user has Catch2 via homebrew. New behavior:

  • Single-arch build (including native arm64 on your Mac): defaults ON → finds Homebrew Catch2 as before.
  • -DCMAKE_OSX_ARCHITECTURES="arm64;x86_64": defaults OFF → falls through to FetchContent, which builds Catch2 for both archs.
  • Either default can be overridden explicitly with -DLSL_TESTS_PREFER_SYSTEM_CATCH2=ON/OFF.

…has Catch2 via homebrew. New behavior:

* Single-arch build (including native arm64 on your Mac): defaults ON → finds Homebrew Catch2 as before.
* -DCMAKE_OSX_ARCHITECTURES="arm64;x86_64": defaults OFF → falls through to FetchContent, which builds Catch2 for both archs.
* Either default can be overridden explicitly with -DLSL_TESTS_PREFER_SYSTEM_CATCH2=ON/OFF.
@cboulay cboulay merged commit f76faa0 into dev Apr 21, 2026
14 checks passed
@cboulay cboulay deleted the catch2_fetch_on_universal branch April 21, 2026 19:34
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.

1 participant