From 934eb497f211b2e48ba070041ba775e1ac55d01d Mon Sep 17 00:00:00 2001 From: Bjoern Thiel Date: Wed, 22 Feb 2017 09:11:34 +0100 Subject: FindCUDA: Fix PTX selection with multiple architectures --- Modules/FindCUDA/select_compute_arch.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/Modules/FindCUDA/select_compute_arch.cmake b/Modules/FindCUDA/select_compute_arch.cmake index a96a8ca..8fb44d8 100644 --- a/Modules/FindCUDA/select_compute_arch.cmake +++ b/Modules/FindCUDA/select_compute_arch.cmake @@ -112,6 +112,7 @@ function(CUDA_SELECT_NVCC_ARCH_FLAGS out_variable) list(REMOVE_DUPLICATES CUDA_ARCH_LIST) foreach(arch_name ${CUDA_ARCH_LIST}) set(arch_bin) + set(arch_ptx) set(add_ptx FALSE) # Check to see if we are compiling PTX if(arch_name MATCHES "(.*)\\+PTX$") -- cgit v0.12