-
Notifications
You must be signed in to change notification settings - Fork 167
build(cmake): Append RTS_BUILD_OUTPUT_SUFFIX to installable targets #2378
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -24,6 +24,8 @@ add_feature_info(AddressSanitizer RTS_BUILD_OPTION_ASAN "Building with address s | |
| add_feature_info(Vc6FullDebug RTS_BUILD_OPTION_VC6_FULL_DEBUG "Building VC6 with full debug info") | ||
| add_feature_info(FFmpegSupport RTS_BUILD_OPTION_FFMPEG "Building with FFmpeg support") | ||
|
|
||
| set(RTS_BUILD_OUTPUT_SUFFIX "" CACHE STRING "Suffix appended to output names of installable targets") | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. PR description doesn't match the implementation. The PR description claims that two separate per-game variables ( These two approaches behave differently — separate full-name variables let you rename each game binary independently, while a shared suffix only lets you add the same postfix to every binary. If the intent really is just a suffix for worktree isolation (as described in the motivation), the current implementation is arguably the right call, but the description should be updated to reflect it accurately to avoid confusing future reviewers. Prompt To Fix With AIThis is a comment left during a code review.
Path: cmake/config-build.cmake
Line: 27
Comment:
PR description doesn't match the implementation.
The PR description claims that two separate per-game variables (`RTS_BUILD_ZEROHOUR_OUTPUT_NAME` and `RTS_BUILD_GENERALS_OUTPUT_NAME`) are introduced with full name defaults (`generalszh` and `generalsv` respectively). However, the actual implementation introduces a single unified `RTS_BUILD_OUTPUT_SUFFIX` that is appended to *all* target output names (both main executables and all tool targets across Generals and GeneralsMD).
These two approaches behave differently — separate full-name variables let you rename each game binary independently, while a shared suffix only lets you add the same postfix to every binary. If the intent really is just a suffix for worktree isolation (as described in the motivation), the current implementation is arguably the right call, but the description should be updated to reflect it accurately to avoid confusing future reviewers.
How can I resolve this? If you propose a fix, please make it concise.
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @greptileai Updated PR description. |
||
|
|
||
| if(RTS_BUILD_ZEROHOUR) | ||
| option(RTS_BUILD_ZEROHOUR_TOOLS "Build tools for Zero Hour" ON) | ||
| option(RTS_BUILD_ZEROHOUR_EXTRAS "Build extra tools/tests for Zero Hour" OFF) | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.