File: cmake-fixes.patch

package info (click to toggle)
cccl 2.3.2-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 89,900 kB
  • sloc: cpp: 697,664; ansic: 26,964; python: 11,928; sh: 3,284; asm: 2,154; perl: 460; makefile: 112; xml: 13
file content (32 lines) | stat: -rw-r--r-- 1,143 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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)