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 @@ -102,7 +102,7 @@ if(CUDA_FOUND)
102
102
else ()
103
103
set (CC_LIST ${ARGN} )
104
104
foreach (target_arch ${CC_LIST} )
105
- string (REPLACE "." "" target_arch_short ${target_arch} )
105
+ string (REPLACE "." "" target_arch_short " ${target_arch} " )
106
106
set (NVCC_OPTION "-gencode;arch=compute_${target_arch_short} ,code=sm_${target_arch_short} " )
107
107
execute_process ( COMMAND "${CUDA_NVCC_EXECUTABLE} " ${NVCC_OPTION} "${OpenCV_SOURCE_DIR} /cmake/checks/OpenCVDetectCudaArch.cu"
108
108
WORKING_DIRECTORY "${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY} /CMakeTmp/"
@@ -112,7 +112,7 @@ if(CUDA_FOUND)
112
112
set (${result_list} "${${result_list} } ${target_arch} " )
113
113
endif ()
114
114
endforeach ()
115
- string (STRIP ${${result_list}} ${result_list} )
115
+ string (STRIP " ${${result_list} }" ${result_list} )
116
116
set (CUDA_SUPPORTED_CC ${${result_list}} CACHE INTERNAL "List of supported compute capability" )
117
117
endif ()
118
118
endmacro ()
@@ -125,7 +125,7 @@ if(CUDA_FOUND)
125
125
endmacro ()
126
126
127
127
macro (ocv_wipeout_deprecated _arch_bin_list )
128
- string (REPLACE "2.1" "2.1(2.0)" ${_arch_bin_list} ${${_arch_bin_list}} )
128
+ string (REPLACE "2.1" "2.1(2.0)" ${_arch_bin_list} " ${${_arch_bin_list} }" )
129
129
endmacro ()
130
130
131
131
set (__cuda_arch_ptx "" )
You can’t perform that action at this time.
0 commit comments