Skip to content

Commit

Permalink
Fix opencv#6500 cmake bug that adds D_FORCE_INLINES to NVCC
Browse files Browse the repository at this point in the history
  • Loading branch information
guysoft committed May 26, 2016
1 parent 0cb1e96 commit 0a48b9a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmake/OpenCVDetectCUDA.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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}")
Expand Down

0 comments on commit 0a48b9a

Please sign in to comment.