Skip to content

fix(cmake): quote the icon include path for windres - #621

Merged
Sapd merged 1 commit into
Sapd:masterfrom
TheWeaklessOne:fix/rc-include-path
Nov 5, 2026
Merged

Sapd merged 1 commit into
Sapd:masterfrom
TheWeaklessOne:fix/rc-include-path

Conversation

@TheWeaklessOne

Copy link
Copy Markdown
Contributor

Changes made

The MinGW build fails when the source path contains a space (for example C:/Users/John Doe/...): CMAKE_RC_FLAGS reaches windres verbatim, so the -I argument for assets/ is split and windres prints its usage text. Setting the directory as an INCLUDE_DIRECTORIES source property on headsetcontrol.rc lets CMake quote it.

Verified with MSYS2 UCRT64 (GCC 16.2) in a path with a space; the build and ctest pass.

🤖 Generated with Claude Code

CMAKE_RC_FLAGS is passed to windres verbatim, so a source path with a
space in it (for example C:/Users/John Doe/...) split the -I argument
and the MinGW build failed on headsetcontrol.rc. Setting the directory
as an INCLUDE_DIRECTORIES source property lets CMake quote it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions github-actions Bot added the awaiting-maintainer The author replied or pushed - our move label Nov 5, 2026
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-05T05:09:23.415595Z 3c2dc06 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@Sapd

Sapd commented Nov 5, 2026

Copy link
Copy Markdown
Owner

Checked the replacement holds up in a path with a space: CMake's ${} expansion doesn't split on spaces, so INCLUDE_DIRECTORIES comes through as one entry. Thanks.

@Sapd
Sapd merged commit 741dccf into Sapd:master Nov 5, 2026
6 checks passed
@github-actions github-actions Bot removed the awaiting-maintainer The author replied or pushed - our move label Nov 5, 2026
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.

2 participants