-
Notifications
You must be signed in to change notification settings - Fork 5
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
cmake: Skip superfluous PIC/PIE warning for Windows #58
Conversation
399642a
to
ecf10f1
Compare
68bd234
to
dce71a8
Compare
Rebased. |
It's frustrating that CMake doesn't just know this. It's also frustrating that FWIW, pic/pie is default on for macOS, so if we're not already getting warnings there, we probably will at some point, so we may as well include that here as well. |
Was this also always the case for |
Sorry if I understood your comment in a wrong way, but it seems that CMake does its job well. On Windows, the It was our decision to print a warning regardless of its usefulness. If guarding the whole code block with |
That seems preferable to me, maybe also with a small comment explaining why? |
ecf10f1
to
2af94fb
Compare
dce71a8
to
46e6999
Compare
PIC/PIE is not a thing in Windows PE format. Therefore, warnings are rather making noise than providing valuable feedback.
46e6999
to
52447c3
Compare
Rebased. Addressed @TheCharlatan's comment. |
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.
ACK 52447c3
Post-merge ACK. Thanks for the explanation, @hebasto, I had indeed misunderstood. |
PIC/PIE is not a thing in Windows PE format. Therefore, warnings are rather making noise than providing valuable feedback.