Files
nvbench/cmake/NVBenchUtilities.cmake
Allison Vacanti b2d37c21fd Add export tests.
2021-10-20 14:02:16 -04:00

15 lines
398 B
CMake

# Writes CMAKE_CUDA_ARCHITECTURES to out_var, but using escaped semicolons
# as delimiters
function(nvbench_escaped_cuda_arches out_var)
set(tmp)
set(first TRUE)
foreach(arg IN LISTS CMAKE_CUDA_ARCHITECTURES)
if (NOT first)
string(APPEND tmp "\;")
endif()
string(APPEND tmp "${arg}")
set(first FALSE)
endforeach()
set(${out_var} "${tmp}" PARENT_SCOPE)
endfunction()