Skip to content

Commit 7d52921

Browse files
brentjohnsonclaude
andcommitted
macOS job: hint CMAKE_PREFIX_PATH at Homebrew's prefix
find_package(SDL3) needs Homebrew's install prefix on the search path; CMake doesn't check /opt/homebrew (or /usr/local on Intel runners) by default. The 4 Ubuntu matrix legs are confirmed green. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
1 parent b5e8013 commit 7d52921

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/c-cpp.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,9 @@ jobs:
6363
# the old sdl12-compat shim -- see MODERNIZATION-PLAN.md §4).
6464
run: brew install sdl3
6565
- name: configure
66-
run: cmake -B build
66+
# Homebrew's prefix (/opt/homebrew on Apple Silicon runners) isn't on
67+
# CMake's built-in search path, so find_package(SDL3) needs a hint.
68+
run: cmake -B build -DCMAKE_PREFIX_PATH=$(brew --prefix)
6769
- name: build
6870
run: cmake --build build -j$(getconf _NPROCESSORS_ONLN)
6971
- name: test

0 commit comments

Comments
 (0)