Browse Source

Merge pull request #3908 from cudawarped:add_cuda_c++17

cuda: Force C++17 Standard for CUDA targets when CUDA Toolkit >=12.8
pull/3911/head
Alexander Smorkalov 4 months ago committed by GitHub
parent
commit
83dbb5180f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 6
      modules/cudev/test/CMakeLists.txt

6
modules/cudev/test/CMakeLists.txt

@ -22,7 +22,11 @@ if(OCV_DEPENDENCIES_FOUND) @@ -22,7 +22,11 @@ if(OCV_DEPENDENCIES_FOUND)
if(CUDA_VERSION VERSION_LESS "11.0")
ocv_update(OPENCV_CUDA_OPTIONS_opencv_test_cudev "-std=c++11")
else()
ocv_update(OPENCV_CUDA_OPTIONS_opencv_test_cudev "-std=c++14")
if(CUDA_VERSION VERSION_LESS "12.8")
ocv_update(OPENCV_CUDA_OPTIONS_opencv_test_cudev "-std=c++14")
else()
ocv_update(OPENCV_CUDA_OPTIONS_opencv_test_cudev "-std=c++17")
endif()
ocv_warnings_disable(CMAKE_CXX_FLAGS -Wdeprecated-declarations)
endif()
CUDA_ADD_EXECUTABLE(${the_target} ${OPENCV_TEST_${the_module}_SOURCES} OPTIONS ${OPENCV_CUDA_OPTIONS_opencv_test_cudev})

Loading…
Cancel
Save