From: Timo Heister Date: Wed, 28 Nov 2018 19:09:24 +0000 (-0500) Subject: cmake: ADOLC and -Werror X-Git-Tag: v9.1.0-rc1~524^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F7484%2Fhead;p=dealii.git 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. --- 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