-
Notifications
You must be signed in to change notification settings - Fork 62
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
[ML] Generate windows resource files using CMake functionality #2321
[ML] Generate windows resource files using CMake functionality #2321
Conversation
…savage/ml-cpp into cmake_generate_windows_resource_files
Co-authored-by: David Roberts <[email protected]>
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.
LGTM
@ONLY | ||
) | ||
|
||
set(ML_FILEFLAGS ${ML_FILEFLAGS} PARENT_SCOPE) |
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 is OK, but it does now mean that in addition to the resource file all our C++ code is getting compiled with this extra symbol defined. I'm sure it won't be a problem as none of our source will contain this string.
It might be nicer to substitute it only into the resource file using the @ML_FILEFLAGS@
syntax. Don't bother about doing this in this PR, because we want to get the overall feature branch merged soon. But maybe you could have a look at tidying this up next week in a separate PR against the main branch.
Relates #2311