diff options
-rw-r--r-- | cmake/3.6/Modules/FindCUDA/select_compute_arch.cmake | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cmake/3.6/Modules/FindCUDA/select_compute_arch.cmake b/cmake/3.6/Modules/FindCUDA/select_compute_arch.cmake index 5376e5b..0c02a8a 100644 --- a/cmake/3.6/Modules/FindCUDA/select_compute_arch.cmake +++ b/cmake/3.6/Modules/FindCUDA/select_compute_arch.cmake @@ -88,7 +88,9 @@ endfunction() # Usage: # SELECT_NVCC_ARCH_FLAGS(out_variable [list of CUDA compute archs]) function(CUDA_SELECT_NVCC_ARCH_FLAGS out_variable) - set(CUDA_ARCH_LIST "${ARGN}") + if(ARGN) + set(CUDA_ARCH_LIST "${ARGN}") + endif() if("X${CUDA_ARCH_LIST}" STREQUAL "X" ) set(CUDA_ARCH_LIST "Auto") |