From: Daniel Arndt Date: Wed, 20 Jun 2018 14:01:54 +0000 (+0200) Subject: Fix using DEAL_II_INVOKE_AUTOPILOT with CUDA enabled X-Git-Tag: v9.1.0-rc1~1004^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F6808%2Fhead;p=dealii.git Fix using DEAL_II_INVOKE_AUTOPILOT with CUDA enabled --- diff --git a/cmake/macros/macro_deal_ii_invoke_autopilot.cmake b/cmake/macros/macro_deal_ii_invoke_autopilot.cmake index 4159cfef8e..4d494eec97 100644 --- a/cmake/macros/macro_deal_ii_invoke_autopilot.cmake +++ b/cmake/macros/macro_deal_ii_invoke_autopilot.cmake @@ -44,6 +44,11 @@ MACRO(DEAL_II_INVOKE_AUTOPILOT) SET(_make_command " $ make") ENDIF() + # Make sure we can treat CUDA targets if available + IF(DEAL_II_WITH_CUDA) + ENABLE_LANGUAGE(CUDA) + ENDIF() + # Define and setup a compilation target: ADD_EXECUTABLE(${TARGET} ${TARGET_SRC}) DEAL_II_SETUP_TARGET(${TARGET})