-
-
Notifications
You must be signed in to change notification settings - Fork 680
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
ENH: use the new CMake mechanism to specify MSVC's static or DLL CRT #2887
ENH: use the new CMake mechanism to specify MSVC's static or DLL CRT #2887
Conversation
@MrTzschr, @liupeiqiHN and @tim-evain your opinion is welcome. I have not tested to confirm that this fixes #2872. Tim, can you test and report? |
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.
Have not tried.
Does this happen on other OS?
dea8f45
to
1129232
Compare
This needs an addition of passing this flag to external projects, such as DCMTK and Expat, but probably others, too. |
1129232
to
4bf1ef0
Compare
@dzenanz Is this still a draft? |
Yes. While this commit on its own is fine, some logical connected changes are needed to make this resolved, as I commented earlier. |
4bf1ef0
to
66f2ba5
Compare
@tim-evain I just updated this. Can you test now? |
66f2ba5
to
4ce3f58
Compare
@dzenanz DCMTK is still built against static CRT when |
Policy 91 needs to be set to I guess DCMTK sets those flag somewhere, as it want to link to static CRT. And since it has CMP0091 implicitly as OLD, passed setting has no effect. |
Even the latest DCMTK tops out at CMake 3.13.2. |
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 am not a windows expert, but all these changes appear reasonable.
Related to #2872.
PR Checklist