]> https://gitweb.dealii.org/ - dealii.git/commitdiff
cmake: ADOLC and -Werror 7484/head
authorTimo Heister <timo.heister@gmail.com>
Wed, 28 Nov 2018 19:09:24 +0000 (14:09 -0500)
committerTimo Heister <timo.heister@gmail.com>
Wed, 28 Nov 2018 19:09:24 +0000 (14:09 -0500)
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

index a78ed447a61039eb131e1185f57753397d925330..0e37255b7021ec5292cb60fc6eb94cb45f73dfe7 100644 (file)
@@ -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 <adolc/adouble.h>
       #include <iostream>

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.