]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix using DEAL_II_INVOKE_AUTOPILOT with CUDA enabled 6808/head
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Wed, 20 Jun 2018 14:01:54 +0000 (16:01 +0200)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Wed, 20 Jun 2018 14:01:54 +0000 (16:01 +0200)
cmake/macros/macro_deal_ii_invoke_autopilot.cmake

index 4159cfef8e2f10cf6b0583f1620a57ec364cf026..4d494eec97ef99d777eb2f5ba11dad048194567e 100644 (file)
@@ -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})

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.