forked from electronicarts/CnC_Generals_Zero_Hour
-
Notifications
You must be signed in to change notification settings - Fork 82
[CMAKE] Make vc6 build process easier #1210
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
Draft
aliendroid1
wants to merge
1
commit into
TheSuperHackers:main
Choose a base branch
from
aliendroid1:vc6vars
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+6
−0
Draft
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This hardcodes a path which doesn't work if its not at this path. I use a portable install that I have at an arbitrary path. I have to run the vcvars32.bat for it to make it work which isn't making my life easier. Even setting VS6_DIR doesn't fix it because this overwrites whatever I have set.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you figure out how to make it work for arbitrary paths without setting up environment outside of cmake then feel free to post a pull request with the alternate implementation. Without this, the only option is to use vcvars32.bat. With this, that option still remains but additionally for users who have their install in the default path or are willing to relocate their install to the default path, this makes it much easier. Alternatively they could also just edit the value of VS6_DIR in cmake presets to match their arbitrary path.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think editing the value in the CMakePresets.json is a behaviour we should even suggest, much less encourage or we'll end up with PRs inadvertently including changes to it. I'd rather this kind of enviroment specific config was provided in an example CMakeUserPresets.json instead that the user can copy to the root of their local repo copy and modify as appropriate as this file is already excluded by gitignore. This kind of user specific stuff is exactly what the user presets file is for.
This would give users 2 options....