Author: Andreas Beckmann <anbe@debian.org>
Description: avoid nvlink errors while building tests
 nvlink error   : Undefined reference to '__cudaCDP2DeviceGetAttribute' in 'CMakeFiles/cub.cpp14.test.device_radix_sort.cdp_1.bytes_1.pairs_0.dir/test_device_radix_sort.cu.o' (target: sm_87)
 nvlink error   : Undefined reference to '__cudaCDP2GetLastError' in 'CMakeFiles/cub.cpp14.test.device_radix_sort.cdp_1.bytes_1.pairs_0.dir/test_device_radix_sort.cu.o' (target: sm_87)
 nvlink error   : Undefined reference to '__cudaCDP2PeekAtLastError' in 'CMakeFiles/cub.cpp14.test.device_radix_sort.cdp_1.bytes_1.pairs_0.dir/test_device_radix_sort.cu.o' (target: sm_87)
 nvlink error   : Undefined reference to '__cudaCDP2GetDevice' in 'CMakeFiles/cub.cpp14.test.device_radix_sort.cdp_1.bytes_1.pairs_0.dir/test_device_radix_sort.cu.o' (target: sm_87)
 nvlink error   : Undefined reference to '__cudaCDP2MemcpyAsync' in 'CMakeFiles/cub.cpp14.test.device_radix_sort.cdp_1.bytes_1.pairs_0.dir/test_device_radix_sort.cu.o' (target: sm_87)
 nvlink error   : Undefined reference to '__cudaCDP2OccupancyMaxActiveBlocksPerMultiprocessorWithFlags' in 'CMakeFiles/cub.cpp14.test.device_radix_sort.cdp_1.bytes_1.pairs_0.dir/test_device_radix_sort.cu.o' (target: sm_87)
 nvlink error   : Undefined reference to '__cudaCDP2GetParameterBuffer' in 'CMakeFiles/cub.cpp14.test.device_radix_sort.cdp_1.bytes_1.pairs_0.dir/test_device_radix_sort.cu.o' (target: sm_87)
 nvlink error   : Undefined reference to '__cudaCDP2LaunchDevice' in 'CMakeFiles/cub.cpp14.test.device_radix_sort.cdp_1.bytes_1.pairs_0.dir/test_device_radix_sort.cu.o' (target: sm_87)

--- a/libcudacxx/CMakeLists.txt
+++ b/libcudacxx/CMakeLists.txt
@@ -70,6 +70,7 @@ if (LIBCUDACXX_ENABLE_CUDA)
   if(CMAKE_CUDA_ARCHITECTURES STREQUAL "all")
     set(CMAKE_CUDA_ARCHITECTURES "${CMAKE_CUDA_ARCHITECTURES_ALL}")
     list(TRANSFORM CMAKE_CUDA_ARCHITECTURES REPLACE "-real" "")
+    list(REMOVE_ITEM CMAKE_CUDA_ARCHITECTURES "87")
   endif()
   # for libcudacxx
   set(LIBCUDACXX_COMPUTE_ARCHS "${CMAKE_CUDA_ARCHITECTURES}")
