diff --git a/modules/cudev/test/CMakeLists.txt b/modules/cudev/test/CMakeLists.txt index 2ff4ebc1d..d8768ab6c 100644 --- a/modules/cudev/test/CMakeLists.txt +++ b/modules/cudev/test/CMakeLists.txt @@ -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")