From 0a48b9ae776a03e1c4f09e7e3cd0e1c21f3ca75c Mon Sep 17 00:00:00 2001 From: Guy Sheffer Date: Thu, 26 May 2016 13:45:50 +0300 Subject: [PATCH] Fix #6500 cmake bug that adds D_FORCE_INLINES to NVCC --- cmake/OpenCVDetectCUDA.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/cmake/OpenCVDetectCUDA.cmake b/cmake/OpenCVDetectCUDA.cmake index 9b52a5e8e6..3534754fea 100644 --- a/cmake/OpenCVDetectCUDA.cmake +++ b/cmake/OpenCVDetectCUDA.cmake @@ -138,6 +138,7 @@ if(CUDA_FOUND) set(OPENCV_CUDA_ARCH_FEATURES "${OPENCV_CUDA_ARCH_FEATURES} ${ARCH}") endif() endforeach() + set(NVCC_FLAGS_EXTRA ${NVCC_FLAGS_EXTRA} -D_FORCE_INLINES) # Tell NVCC to add PTX intermediate code for the specified architectures string(REGEX MATCHALL "[0-9]+" ARCH_LIST "${ARCH_PTX_NO_POINTS}")