Repository navigation
Added VS2017 support (MSVC 1910) - #7797
Conversation
|
Also should I backport this to 2.4.x too? If it is still maintained, then, yes? |
|
This changes makes building OpenCV and the I had a look at |
|
@patrikhuber , looks like cmake sets Windows cmake configuration file for OpenCV is split into main This behavior looks strange, could you provide cmake commands you used to build OpenCV and test app and CMakeLists.txt for your test app? |
|
@mshabunin: Ok, forget about the issue with Which means the only question left is how you guys want to handle what I mentioned above (I don't have enough knowledge in that area of CMake to make these changes right now):
|
The current patch looks good to me. 👍 BTW, Could you add some link with information about binary compatibility? |
I think the best link is probably this post: http://stackoverflow.com/questions/40854917/is-visual-c-2017-binary-compatible-with-vc-2015 |
This pullrequest changes
Add support for VS2017 (RC is out, final will be very soon). It's identifier is MSVC 1910 and it's vc15.
Probably there are some changes necessary to the CMake
find_packagecommand: VS2017 is supposedly binary-compatible with VS2015, which means that when using the VS2015 generator,find_packageshould accept binaries created with vc14 as well as vc15, and the VS2017 generator should accept binaries from vc14 as well as vc15 too, but prefer binaries from vc15 (its own version). This can be done in a separate PR.Even though they're binary compatible it still makes sense to merge this PR which outputs binaries generated with VS2017 into a vc15 folder, since vc15 is its new version number and I think I read in a blog-post that the binaries do differ and some newer features are used if all components that are linked are compiled from VS2017, and no "older" libraries take part in the linking.
So in my opinion it makes sense to output binaries from VS2015 into vc14, and binaries from VS2017 into vc15 - even though they may well be binary compatible.