From: Daniel Arndt Date: Mon, 22 Oct 2018 23:46:44 +0000 (+0200) Subject: Force CUDA host compiler to be the same as the one used as C++ compiler X-Git-Tag: v9.1.0-rc1~573^2~2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=35c1478c824de17d23f64dd4f1f23c20334e4164;p=dealii.git Force CUDA host compiler to be the same as the one used as C++ compiler --- diff --git a/cmake/configure/configure_1_cuda.cmake b/cmake/configure/configure_1_cuda.cmake index c82b96b08f..eaec860435 100644 --- a/cmake/configure/configure_1_cuda.cmake +++ b/cmake/configure/configure_1_cuda.cmake @@ -119,6 +119,7 @@ MACRO(FEATURE_CUDA_CONFIGURE_EXTERNAL) # compiler: # SET(CMAKE_CUDA_COMPILER "${CUDA_NVCC_EXECUTABLE}") + SET(CMAKE_CUDA_HOST_COMPILER "${CMAKE_CXX_COMPILER}") ENABLE_LANGUAGE(CUDA) MARK_AS_ADVANCED(CMAKE_CUDA_HOST_COMPILER)