Author: Andreas Beckmann <anbe@debian.org>
Description: fix building without CUDA toolkit

--- a/examples/CMakeLists.txt
+++ b/examples/CMakeLists.txt
@@ -32,6 +32,7 @@ set(cmake_cpm_opts
   -D "CCCL_TAG=${CCCL_EXAMPLE_CPM_TAG}"
 )
 
+if (CMAKE_CUDA_COMPILER)
 cccl_add_compile_test(test_name
   cccl.example
   example_project
@@ -39,3 +40,4 @@ cccl_add_compile_test(test_name
   ${cmake_opts}
   ${cmake_cpm_opts}
 )
+endif()
--- a/libcudacxx/CMakeLists.txt
+++ b/libcudacxx/CMakeLists.txt
@@ -50,7 +50,7 @@ if ("${CMAKE_CUDA_COMPILER_ID}" STREQUAL
 endif ()
 option(LIBCUDACXX_ENABLE_STATIC_LIBRARY "Enable building the full C++ stdlib static library build."
     ${_libcudacxx_enable_static_library})
-option(LIBCUDACXX_ENABLE_LIBCUDACXX_TESTS "Enable libcu++ tests." ON)
+option(LIBCUDACXX_ENABLE_LIBCUDACXX_TESTS "Enable libcu++ tests." ${LIBCUDACXX_ENABLE_CUDA})
 option(LIBCUDACXX_ENABLE_LIBCXX_TESTS "Enable upstream libc++ tests." OFF)
 option(LIBCUDACXX_ENABLE_LIBCXXABI_TESTS "Enable upstream libc++abi tests." OFF)
 option(LIBCUDACXX_ENABLE_LIBUNWIND_TESTS "Enable upstream libunwind tests." OFF)
