From: Daniel Arndt Date: Mon, 18 Jun 2018 20:54:47 +0000 (+0200) Subject: Don't use __attribute__((deprecated)) with CUDA X-Git-Tag: v9.1.0-rc1~1017^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cca0f9978110ae2d4a0de3d0db2dfb8ac75968b1;p=dealii.git Don't use __attribute__((deprecated)) with CUDA --- diff --git a/cmake/checks/check_02_compiler_features.cmake b/cmake/checks/check_02_compiler_features.cmake index a2b90d1c4c..56d7e51690 100644 --- a/cmake/checks/check_02_compiler_features.cmake +++ b/cmake/checks/check_02_compiler_features.cmake @@ -338,7 +338,7 @@ RESET_CMAKE_REQUIRED() IF(DEAL_II_COMPILER_HAS_CXX14_ATTRIBUTE_DEPRECATED) SET(DEAL_II_DEPRECATED "[[deprecated]]") -ELSEIF(DEAL_II_COMPILER_HAS_ATTRIBUTE_DEPRECATED) +ELSEIF(DEAL_II_COMPILER_HAS_ATTRIBUTE_DEPRECATED AND NOT DEAL_II_WITH_CUDA) SET(DEAL_II_DEPRECATED "__attribute__((deprecated))") ELSE() SET(DEAL_II_DEPRECATED " ")