]> https://gitweb.dealii.org/ - dealii.git/commitdiff
bugfix
authorMatthias Maier <tamiko@43-1.org>
Tue, 15 Aug 2017 21:35:29 +0000 (23:35 +0200)
committerMatthias Maier <tamiko@43-1.org>
Tue, 15 Aug 2017 21:44:00 +0000 (16:44 -0500)
cmake/configure/configure_1_cuda.cmake

index f8b4fd3fb015245958ccccc57fed9850220823bb..1c825ce2bd7f30d6b02cfe6717f53c73438c7817 100644 (file)
@@ -45,9 +45,9 @@ MACRO(FEATURE_CUDA_FIND_EXTERNAL var)
         )
     ENDIF()
 
-    IF("${DEAL_II_CUDA_FLAGS}" MATCHES "-arch[ ]*sm_([0-9]*)")
+    IF("${DEAL_II_CUDA_FLAGS_SAVED}" MATCHES "-arch[ ]*sm_([0-9]*)")
       SET(CUDA_COMPUTE_CAPABILITY "${CMAKE_MATCH_1}")
-    ELSEIF("${DEAL_II_CUDA_FLAGS}" MATCHES "-arch=sm_([0-9]*)")
+    ELSEIF("${DEAL_II_CUDA_FLAGS_SAVED}" MATCHES "-arch=sm_([0-9]*)")
       SET(CUDA_COMPUTE_CAPABILITY "${CMAKE_MATCH_1}")
     ELSE()
       #

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.