Skip to content

fix(cmake): add formatting targets only in standalone builds - #3

Merged
hzqst merged 1 commit into
mainfrom
fix/subproject-format-validation
Nov 20, 2026
Merged

hzqst merged 1 commit into
mainfrom
fix/subproject-format-validation

Conversation

@hzqst

@hzqst hzqst commented Nov 20, 2026

Copy link
Copy Markdown
Contributor

Summary

As a subproject (add_subdirectory), the bridge unconditionally included cmake/FormatValidation.cmake, which fetched MetaHookSv/FormatValidation from GitHub at configure time and registered SteamAPIBridge-format* targets in the parent build. The parent project owns formatting (HLND2T-DiligentGraphics checks submodules from its own format-only configuration), so the tooling is now included only when PROJECT_IS_TOP_LEVEL.

Verification

  • Standalone configure: format-check still runs (14 files, 0 with differences).
  • Subproject configure is exercised by the HLND2T-DiligentGraphics integration branch.

🤖 Generated with Claude Code

As a subproject the bridge fetched the FormatValidation tooling at configure
time and added its own formatting targets to the parent build. The parent
project owns formatting, so only a top-level build includes the tooling.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@hzqst
hzqst merged commit cb81f47 into main Nov 20, 2026
2 checks passed
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