]> https://gitweb.dealii.org/ - dealii.git/commitdiff
User projects: Make sure that CMAKE_CUDA_HOST_COMPILER is set. 14050/head
authorMatthias Maier <tamiko@43-1.org>
Sun, 26 Jun 2022 05:59:55 +0000 (00:59 -0500)
committerMatthias Maier <tamiko@43-1.org>
Sun, 26 Jun 2022 06:00:52 +0000 (01:00 -0500)
cmake/macros/macro_deal_ii_initialize_cached_variables.cmake

index c9ba36c85ca98d6e475492092d80413c2586debc..53c7bdbdfa496bfef6d2d185eec34a229030311e 100644 (file)
@@ -98,6 +98,8 @@ MACRO(DEAL_II_INITIALIZE_CACHED_VARIABLES)
   IF(DEAL_II_WITH_CUDA)
     SET(CMAKE_CUDA_COMPILER ${DEAL_II_CUDA_COMPILER} CACHE STRING
       "CUDA Compiler.")
+    SET(CMAKE_CUDA_HOST_COMPILER ${DEAL_II_CXX_COMPILER} CACHE STRING
+      "CXX Compiler.")
     SET(CMAKE_CUDA_FLAGS "" CACHE STRING
       "Flags used by the compiler during all build types."
       )

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.