Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6bd87e8

Browse files
committed
Merge pull request#17571 from tomoaki0705:fixAutomaticCC
2 parents42a4c3f +1cba763 commit6bd87e8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎cmake/OpenCVDetectCUDA.cmake‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ if(CUDA_FOUND)
102102
else()
103103
set(CC_LIST${ARGN})
104104
foreach(target_arch${CC_LIST})
105-
string(REPLACE".""" target_arch_short${target_arch})
105+
string(REPLACE".""" target_arch_short"${target_arch}")
106106
set(NVCC_OPTION"-gencode;arch=compute_${target_arch_short},code=sm_${target_arch_short}")
107107
execute_process(COMMAND"${CUDA_NVCC_EXECUTABLE}"${NVCC_OPTION}"${OpenCV_SOURCE_DIR}/cmake/checks/OpenCVDetectCudaArch.cu"
108108
WORKING_DIRECTORY"${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeTmp/"
@@ -112,7 +112,7 @@ if(CUDA_FOUND)
112112
set(${result_list}"${${result_list}}${target_arch}")
113113
endif()
114114
endforeach()
115-
string(STRIP ${${result_list}}${result_list})
115+
string(STRIP"${${result_list}}"${result_list})
116116
set(CUDA_SUPPORTED_CC ${${result_list}}CACHEINTERNAL"List of supported compute capability")
117117
endif()
118118
endmacro()
@@ -125,7 +125,7 @@ if(CUDA_FOUND)
125125
endmacro()
126126

127127
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}}")
129129
endmacro()
130130

131131
set(__cuda_arch_ptx"")

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp