From 24083bab0068ad660cfac7f26f090dd2f6cba547 Mon Sep 17 00:00:00 2001 From: Timo Heister Date: Wed, 28 Nov 2018 14:09:24 -0500 Subject: [PATCH] cmake: ADOLC and -Werror when using -Werror the compile check for adolc fails (the adolc header produces a couple harmless warnings). Fix this by not giving all deal.II CXX_FLAGS to the test but only the c++ version info. --- cmake/configure/configure_adolc.cmake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmake/configure/configure_adolc.cmake b/cmake/configure/configure_adolc.cmake index a78ed447a6..0e37255b70 100644 --- a/cmake/configure/configure_adolc.cmake +++ b/cmake/configure/configure_adolc.cmake @@ -54,7 +54,8 @@ MACRO(FEATURE_ADOLC_FIND_EXTERNAL var) LIST(APPEND CMAKE_REQUIRED_LIBRARIES ${ADOLC_LIBRARIES}) LIST(APPEND CMAKE_REQUIRED_INCLUDES ${ADOLC_INCLUDE_DIRS}) - ADD_FLAGS(CMAKE_REQUIRED_FLAGS "${DEAL_II_CXX_FLAGS}") + ADD_FLAGS(CMAKE_REQUIRED_FLAGS "${DEAL_II_CXX_VERSION_FLAG}") + CHECK_CXX_SOURCE_COMPILES(" #include #include -- 2.39.5