Skip to content

chore: simplify SDL2 guard in examples/CMakeLists.txt#8

Merged
PABannier merged 1 commit intomainfrom
chore/simplify-sdl2-guard
Apr 10, 2026
Merged

chore: simplify SDL2 guard in examples/CMakeLists.txt#8
PABannier merged 1 commit intomainfrom
chore/simplify-sdl2-guard

Conversation

@PABannier
Copy link
Copy Markdown
Owner

Summary

  • The EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/third-party/CMakeLists.txt" half of the guard was dead — that file is tracked in git and therefore always present, so the condition was effectively just if(SDL2_FOUND).
  • Drop it and trim the skip message to match.

Follow-up cleanup to the imgui FetchContent fix landed in 6fd1ea0 (which resolved the practical symptom reported in #6).

Test plan

  • cmake .. succeeds on macOS with SDL2 installed and still builds sam3_image / sam3_video
  • cmake .. on a machine without SDL2 prints SDL2 not found — skipping GUI examples and still builds sam3_benchmark / sam3_quantize
  • CI stays green

🤖 Generated with Claude Code

The EXISTS check for third-party/CMakeLists.txt was always true (the
file is tracked in git), so it added noise without guarding anything.
Drop it and trim the skip message to match.

Follow-up cleanup to the imgui FetchContent fix from 6fd1ea0 / #6.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@PABannier PABannier force-pushed the chore/simplify-sdl2-guard branch from 1034099 to 1fd0251 Compare April 10, 2026 08:46
@PABannier PABannier merged commit aad6b87 into main Apr 10, 2026
3 checks passed
@PABannier PABannier deleted the chore/simplify-sdl2-guard branch April 10, 2026 08:51
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