warning #1394-D: field of class type without a DLL interface used in a class with a DLL interface
from windows CUDA builds.
pull/22816/head
cudawarped 2 years ago
parent 3edf7c25d4
commit 45d04175d4
  1. 4
      cmake/OpenCVDetectCUDA.cmake

@ -421,6 +421,10 @@ if(CUDA_FOUND)
set(CUDA_NVCC_FLAGS ${CUDA_NVCC_FLAGS} -Xcompiler -fno-finite-math-only)
endif()
if(WIN32)
set(CUDA_NVCC_FLAGS ${CUDA_NVCC_FLAGS} -Xcudafe --display_error_number --diag-suppress 1394,1388)
endif()
if(CMAKE_CROSSCOMPILING AND (ARM OR AARCH64))
set(CUDA_NVCC_FLAGS ${CUDA_NVCC_FLAGS} -Xlinker --unresolved-symbols=ignore-in-shared-libs)
endif()

Loading…
Cancel
Save