From 3376e02233ab2b3743cf65f626abd0ae9c7eae9a Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Thu, 25 Oct 2018 17:25:31 +0200 Subject: [PATCH] Also force the CUDA host compiler to match the C++ compiler for DEAL_II_INVOKE_AUTOPILOT --- cmake/macros/macro_deal_ii_invoke_autopilot.cmake | 1 + 1 file changed, 1 insertion(+) 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: -- 2.39.5