From 770538e3e638e8f24f2ad337bd482b23947ea202 Mon Sep 17 00:00:00 2001 From: Timo Heister Date: Thu, 21 Jun 2018 20:59:19 -0400 Subject: [PATCH] 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. --- cmake/checks/check_02_compiler_features.cmake | 8 ++++++++ 1 file changed, 8 insertions(+) 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 -- 2.39.5