]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Move check for C++11 inside if case to not affect non-cuda configuration 2616/head
authorKarl Ljungkvist <k.ljungkvist@gmail.com>
Wed, 18 May 2016 16:21:10 +0000 (11:21 -0500)
committerKarl Ljungkvist <k.ljungkvist@gmail.com>
Wed, 18 May 2016 16:21:10 +0000 (11:21 -0500)
cmake/configure/configure_1_cuda.cmake

index e372b709bc91a3086eb43c2a91fd636cfdf37e24..4d16b2fbfe0e43f3411f02704bd58eb3e7e7f937 100644 (file)
 
 MACRO(FEATURE_CUDA_FIND_EXTERNAL var)
 
-  IF(NOT DEAL_II_WITH_CXX11)
-    MESSAGE(FATAL_ERROR "\n"
-      "CUDA only supported with C++11. Reconfigure with DEAL_II_WITH_CXX11=ON.\n"
-      )
-  ENDIF()
 
   FIND_PACKAGE(CUDA)
 
   IF(CUDA_FOUND)
+
+    IF(NOT DEAL_II_WITH_CXX11)
+      MESSAGE(FATAL_ERROR "\n"
+        "CUDA only supported with C++11. Reconfigure with DEAL_II_WITH_CXX11=ON.\n"
+        )
+    ENDIF()
+
     SET(CUDA_ATTACH_VS_BUILD_RULE_TO_CUDA_FILE FALSE)
 
     # Activate C++11 since we require it above.

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.