Fix #6500 cmake bug that adds D_FORCE_INLINES to NVCC
This commit is contained in:
parent
0cb1e96472
commit
0a48b9ae77
@ -138,6 +138,7 @@ if(CUDA_FOUND)
|
|||||||
set(OPENCV_CUDA_ARCH_FEATURES "${OPENCV_CUDA_ARCH_FEATURES} ${ARCH}")
|
set(OPENCV_CUDA_ARCH_FEATURES "${OPENCV_CUDA_ARCH_FEATURES} ${ARCH}")
|
||||||
endif()
|
endif()
|
||||||
endforeach()
|
endforeach()
|
||||||
|
set(NVCC_FLAGS_EXTRA ${NVCC_FLAGS_EXTRA} -D_FORCE_INLINES)
|
||||||
|
|
||||||
# Tell NVCC to add PTX intermediate code for the specified architectures
|
# Tell NVCC to add PTX intermediate code for the specified architectures
|
||||||
string(REGEX MATCHALL "[0-9]+" ARCH_LIST "${ARCH_PTX_NO_POINTS}")
|
string(REGEX MATCHALL "[0-9]+" ARCH_LIST "${ARCH_PTX_NO_POINTS}")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user