From: Matthias Maier Date: Tue, 15 Aug 2017 21:35:29 +0000 (+0200) Subject: bugfix X-Git-Tag: v9.0.0-rc1~1235^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dca80b38a2bd6ff55c18689381ada6833207fd2e;p=dealii.git bugfix --- diff --git a/cmake/configure/configure_1_cuda.cmake b/cmake/configure/configure_1_cuda.cmake index f8b4fd3fb0..1c825ce2bd 100644 --- a/cmake/configure/configure_1_cuda.cmake +++ b/cmake/configure/configure_1_cuda.cmake @@ -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() #