From: Daniel Arndt Date: Thu, 25 Oct 2018 15:25:31 +0000 (+0200) Subject: Also force the CUDA host compiler to match the C++ compiler for DEAL_II_INVOKE_AUTOPILOT X-Git-Tag: v9.1.0-rc1~573^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3376e02233ab2b3743cf65f626abd0ae9c7eae9a;p=dealii.git Also force the CUDA host compiler to match the C++ compiler for DEAL_II_INVOKE_AUTOPILOT --- diff --git a/cmake/macros/macro_deal_ii_invoke_autopilot.cmake b/cmake/macros/macro_deal_ii_invoke_autopilot.cmake index 0db848ec66..94fcbc8a49 100644 --- a/cmake/macros/macro_deal_ii_invoke_autopilot.cmake +++ b/cmake/macros/macro_deal_ii_invoke_autopilot.cmake @@ -47,6 +47,7 @@ MACRO(DEAL_II_INVOKE_AUTOPILOT) # Make sure we can treat CUDA targets if available IF(DEAL_II_WITH_CUDA) ENABLE_LANGUAGE(CUDA) + SET(CMAKE_CUDA_HOST_COMPILER "${CMAKE_CXX_COMPILER}") ENDIF() # Define and setup a compilation target: