File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ if(CUDA_FOUND)
101
101
else ()
102
102
set (CC_LIST ${ARGN} )
103
103
foreach (target_arch ${CC_LIST} )
104
- string (REPLACE "." "" target_arch_short ${target_arch} )
104
+ string (REPLACE "." "" target_arch_short " ${target_arch} " )
105
105
set (NVCC_OPTION "-gencode;arch=compute_${target_arch_short} ,code=sm_${target_arch_short} " )
106
106
execute_process ( COMMAND "${CUDA_NVCC_EXECUTABLE} " ${NVCC_OPTION} "${OpenCV_SOURCE_DIR} /cmake/checks/OpenCVDetectCudaArch.cu"
107
107
WORKING_DIRECTORY "${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY} /CMakeTmp/"
@@ -111,7 +111,7 @@ if(CUDA_FOUND)
111
111
set (${result_list} "${${result_list} } ${target_arch} " )
112
112
endif ()
113
113
endforeach ()
114
- string (STRIP ${${result_list}} ${result_list} )
114
+ string (STRIP " ${${result_list} }" ${result_list} )
115
115
set (CUDA_SUPPORTED_CC ${${result_list}} CACHE INTERNAL "List of supported compute capability" )
116
116
endif ()
117
117
endmacro ()
@@ -124,7 +124,7 @@ if(CUDA_FOUND)
124
124
endmacro ()
125
125
126
126
macro (ocv_wipeout_deprecated _arch_bin_list )
127
- string (REPLACE "2.1" "2.1(2.0)" ${_arch_bin_list} ${${_arch_bin_list}} )
127
+ string (REPLACE "2.1" "2.1(2.0)" ${_arch_bin_list} " ${${_arch_bin_list} }" )
128
128
endmacro ()
129
129
130
130
set (__cuda_arch_ptx "" )
You can’t perform that action at this time.
0 commit comments