Author: Andreas Beckmann <anbe@debian.org>
Description: misc cmake fixes

--- a/libcudacxx/test/libcudacxx/CMakeLists.txt
+++ b/libcudacxx/test/libcudacxx/CMakeLists.txt
@@ -68,14 +68,14 @@ if (${CMAKE_CUDA_COMPILER_ID} STREQUAL "
     " -L${CUDAToolkit_LIBRARY_DIR} -lcuda -lcudart")
 endif()
 
-if (${CMAKE_CUDA_COMPILER_ID} STREQUAL "NVIDIA")
+if ("${CMAKE_CUDA_COMPILER_ID}" STREQUAL "NVIDIA")
   set(LIBCUDACXX_TEST_COMPILER_FLAGS
     "${LIBCUDACXX_TEST_COMPILER_FLAGS} \
     ${LIBCUDACXX_FORCE_INCLUDE} \
     ${LIBCUDACXX_WARNING_LEVEL}")
 endif()
 
-if (${CMAKE_CUDA_COMPILER_ID} STREQUAL "NVHPC")
+if ("${CMAKE_CUDA_COMPILER_ID}" STREQUAL "NVHPC")
   set(LIBCUDACXX_TEST_COMPILER_FLAGS
     "${LIBCUDACXX_TEST_COMPILER_FLAGS} \
     -stdpar")
--- a/libcudacxx/cmake/AddLLVM.cmake
+++ b/libcudacxx/cmake/AddLLVM.cmake
@@ -180,6 +180,7 @@ if (NOT DEFINED LLVM_LINKER_DETECTED)
       message(STATUS "Linker detection: unknown")
     endif()
   elseif(NOT WIN32)
+    enable_language(C)
     # Detect what linker we have here
     if( LLVM_USE_LINKER )
       set(command ${CMAKE_C_COMPILER} -fuse-ld=${LLVM_USE_LINKER} -Wl,--version)
