Skip to content

Commit 4dfa3cc

Browse files
authored
chore: enhance the cmake experience by ignoring the additional semicolon (#3992)
Signed-off-by: nv-guomingz <137257613+nv-guomingz@users.noreply.github.com>
1 parent 7666bec commit 4dfa3cc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cpp/cmake/modules/cuda_configuration.cmake

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,10 @@ macro(setup_cuda_architectures)
122122
else()
123123
unset(CMAKE_CUDA_ARCHITECTURES_CLEAN)
124124
foreach(CUDA_ARCH IN LISTS CMAKE_CUDA_ARCHITECTURES)
125+
if(CUDA_ARCH STREQUAL "")
126+
continue()
127+
endif()
128+
125129
if(CUDA_ARCH MATCHES "^([1-9])([0-9])+a?-virtual$")
126130
message(FATAL_ERROR "Including PTX in compiled binary is unsupported.")
127131
elseif(CUDA_ARCH MATCHES "^(([1-9])([0-9])+)a?(-real)?$")

0 commit comments

Comments
 (0)