opencv-3.4.1-cuda-add-relaxed-constexpr.patch 707 B

123456789101112131415
  1. diff -Naur a/cmake/FindCUDA.cmake b/cmake/FindCUDA.cmake
  2. --- a/cmake/FindCUDA.cmake 2018-05-26 12:57:45.698858052 +0100
  3. +++ b/cmake/FindCUDA.cmake 2018-05-26 16:49:01.196390803 +0100
  4. @@ -447,8 +447,8 @@
  5. # Parse HOST_COMPILATION mode.
  6. option(CUDA_HOST_COMPILATION_CPP "Generated file extension" ON)
  7. -# Extra user settable flags
  8. -set(CUDA_NVCC_FLAGS "" CACHE STRING "Semi-colon delimit multiple arguments.")
  9. + #Extra user settable flags
  10. +set(CUDA_NVCC_FLAGS "--expt-relaxed-constexpr;" CACHE STRING "Semi-colon delimit multiple arguments.")
  11. if(CMAKE_GENERATOR MATCHES "Visual Studio")
  12. set(_CUDA_MSVC_HOST_COMPILER "$(VCInstallDir)Tools/MSVC/$(VCToolsVersion)/bin/Host$(Platform)/$(PlatformTarget)")