]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix setting host compiler 8876/head
authorDaniel Arndt <arndtd@ornl.gov>
Fri, 27 Sep 2019 17:10:00 +0000 (17:10 +0000)
committerDaniel Arndt <arndtd@ornl.gov>
Fri, 27 Sep 2019 17:12:27 +0000 (13:12 -0400)
cmake/macros/macro_deal_ii_invoke_autopilot.cmake

index 2d41ea0000c04fcc23042478947f3449c0d66b11..2fe7f4b464045082e14269fd27861e5826901fdf 100644 (file)
@@ -46,8 +46,8 @@ 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}")
+    ENABLE_LANGUAGE(CUDA)
   ENDIF()
 
   # Define and setup a compilation 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.