From: Matthias Maier Date: Sun, 26 Jun 2022 05:59:55 +0000 (-0500) Subject: User projects: Make sure that CMAKE_CUDA_HOST_COMPILER is set. X-Git-Tag: v9.5.0-rc1~1150^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F14050%2Fhead;p=dealii.git User projects: Make sure that CMAKE_CUDA_HOST_COMPILER is set. --- diff --git a/cmake/macros/macro_deal_ii_initialize_cached_variables.cmake b/cmake/macros/macro_deal_ii_initialize_cached_variables.cmake index c9ba36c85c..53c7bdbdfa 100644 --- a/cmake/macros/macro_deal_ii_initialize_cached_variables.cmake +++ b/cmake/macros/macro_deal_ii_initialize_cached_variables.cmake @@ -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." )