From: Timo Heister Date: Fri, 22 Jun 2018 00:59:19 +0000 (-0400) Subject: cmake check for using and DEAL_II_DEPRECATED X-Git-Tag: v9.1.0-rc1~896^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F6823%2Fhead;p=dealii.git cmake check for using and DEAL_II_DEPRECATED it turns out the intel compiler doesn't like deprecated using: ``` In file included from /ssd/deal-git/source/lac/affine_constraints.cc(16): /ssd/deal-git/include/deal.II/lac/affine_constraints.h(65): warning #2651: attribute does not apply to any entity using ConstraintMatrix DEAL_II_DEPRECATED = AffineConstraints; ``` This updates the cmake check to stop this from happening. --- diff --git a/cmake/checks/check_02_compiler_features.cmake b/cmake/checks/check_02_compiler_features.cmake index 56d7e51690..02ca404f4f 100644 --- a/cmake/checks/check_02_compiler_features.cmake +++ b/cmake/checks/check_02_compiler_features.cmake @@ -312,6 +312,10 @@ CHECK_CXX_SOURCE_COMPILES( [[deprecated]] void test(); }; + template + struct foo {}; + using bar [[deprecated]] = foo<2>; + int main () {} " DEAL_II_COMPILER_HAS_CXX14_ATTRIBUTE_DEPRECATED @@ -329,6 +333,10 @@ CHECK_CXX_SOURCE_COMPILES( __attribute__((deprecated)) void test(); }; + template + struct foo {}; + using bar __attribute__((deprecated)) = foo<2>; + int main () {} " DEAL_II_COMPILER_HAS_ATTRIBUTE_DEPRECATED