Browse Source

Merge pull request #3912 from cudawarped:cuda_windows_remove_c11_flag

cudev:: Remove C++ standard flag for Windows pre CUDA 11.0
pull/3918/head
Alexander Smorkalov 3 months ago committed by GitHub
parent
commit
fa1dbfdab9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 5
      modules/cudev/test/CMakeLists.txt

5
modules/cudev/test/CMakeLists.txt

@ -20,7 +20,10 @@ if(OCV_DEPENDENCIES_FOUND) @@ -20,7 +20,10 @@ if(OCV_DEPENDENCIES_FOUND)
ocv_check_windows_crt_linkage()
set(target_libs ${target_libs} ${CUDA_LIBRARIES})
if(CUDA_VERSION VERSION_LESS "11.0")
ocv_update(OPENCV_CUDA_OPTIONS_opencv_test_cudev "-std=c++11")
# Windows version does not support --std option
if(UNIX OR APPLE)
ocv_update(OPENCV_CUDA_OPTIONS_opencv_test_cudev "-std=c++11")
endif()
else()
if(CUDA_VERSION VERSION_LESS "12.8")
ocv_update(OPENCV_CUDA_OPTIONS_opencv_test_cudev "-std=c++14")

Loading…
Cancel
Save