]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Guard FIND_PACKAGE(CUDA) with DEAL_II_WITH_CUDA. 4405/head
authorBruno Turcksin <bruno.turcksin@gmail.com>
Fri, 19 May 2017 12:50:03 +0000 (08:50 -0400)
committerBruno Turcksin <bruno.turcksin@gmail.com>
Fri, 19 May 2017 12:50:03 +0000 (08:50 -0400)
cmake/macros/macro_deal_ii_pickup_tests.cmake

index 220399bcf91368e9eaeec6e46a9c1dcdeb3f5b74..581cc97fa1c205d2075484763ce6538f310112cc 100644 (file)
@@ -81,8 +81,10 @@ MACRO(DEAL_II_PICKUP_TESTS)
   # Necessary external interpreters and programs:
   #
 
-  FIND_PACKAGE(CUDA)
-  SET(CUDA_NVCC_FLAGS ${CUDA_NVCC_FLAGS} -std=c++11 -arch=sm_35)
+  IF(DEAL_II_WITH_CUDA)
+    FIND_PACKAGE(CUDA)
+    SET(CUDA_NVCC_FLAGS ${CUDA_NVCC_FLAGS} -std=c++11 -arch=sm_35)
+  ENDIF()
 
   FIND_PACKAGE(Perl REQUIRED)
 

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.