-
Notifications
You must be signed in to change notification settings - Fork 429
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
win32|cmake: Fix FileVersion and ProductVersion in DLL version info #785
Conversation
Thanks for looking at a fix Unfortunately, I'm not seeing the macro work as intended with the MSVC compiler (I believe locally using v14.34 or 1934 but not sure if that'll matter). It looks to not handle tokenizing the string into the macro arguments correctly like GCC/clang might allow and you just get the version appended with some We found we can get the macro to work with the compiler if we specify the As an alternative solution, we found generating the If that's hard to parse, I can try to fork and push a branch. My cmake experience is limited so there may be cleaner ways to do something like that |
@sgarske thanks for testing and the detailed feedback! 馃憤 I get the idea, did see something similar elsewhere. Let me apply a variation of it, confirm that it's working locally, and update the pull request. With luck give me 15 minutes, will report back here. |
754dc2b
to
1e21f88
Compare
@sgarske done, pushed. Could you try again? |
Before: {'FileVersion': 'VER_FILEVERSION', 'ProductVersion': 'VER_FILEVERSION'} After: {'FileVersion': '2.5.0.0', 'ProductVersion': '2.5.0.0'} Thanks to @spookyahell for helpful gist "exe2version_info.py": https://gist.github.com/spookyahell/b317bdf0712aac5fd37dd79f70bfbe69
1e21f88
to
781269f
Compare
@sgarske updated once more, previous version gave "2,5,0,0", now at "2.5.0.0" with dots again. |
The latest version seems to work for me 馃憤 . Thanks for your help with this and quick turnaround. |
@sgarske that is great news, thanks for testing once more! 馃憤 I'll merge when/if the CI turns all green. Thanks for contributing to Expat! 馃檹 |
Reported by @sgarske at #555 (comment)
Follow-up to pull request #570
Before:
{'FileVersion': 'VER_FILEVERSION', 'ProductVersion': 'VER_FILEVERSION'}
After:
{'FileVersion': '2.5.0.0', 'ProductVersion': '2.5.0.0'}
Thanks to @spookyahell for helpful gist
exe2version_info.py
! 馃檹