Set C++ standard for all CUDA configurations#27142
Conversation
|
Tested manually on Windows with CUDA 12.6. |
|
cc @cudawarped |
|
Cannot test Cuda 10.2 + MSVS, because Microsoft does not allow to download old Visual Studio versions. |
|
@asmorkalov Working on Windows with CUDA 12.8.
Installing CUDA 10.2 now to see if I can build it with my version of VS 2019. |
|
@asmorkalov Building with CUDA 10.2 and VS 2019 I get the following warnings but everything builds correctly This is probably the reason for the original condition in the CMake file. |
8ef5bf3 to
68a595d
Compare
|
@cudawarped I added OS check for CUDA pre 11.0. |
|
@asmorkalov That fixes the issue for everything apart from test cudev which by the looks of it would always have generated this warning That said with the amount of
warnings generated by VS 2019 with CUDA 10.2 I am not sure if this is an issue worth fixing. |
|
@cudawarped Thanks a lot for the investigation. I merge the patch then and return back to cudev later. |
Continues #27112
Addresses #27095
Pull Request Readiness Checklist
See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request
Patch to opencv_extra has the same branch name.