#1687 cmake should not suppress warnings in core modules
Metadata
Property | Value |
---|---|
Reported by | Jö Fahlke (jorrit@jorrit.de) |
Reported at | Jul 3, 2015 16:07 |
Type | Bug Report |
Version | Git (pre2.4) [cmake] |
Operating System | Linux 64bit |
Last edited by | Christoph Grüninger (gruenich@iws.uni-stuttgart.de) |
Last edited at | Jul 22, 2015 08:48 |
Description
I just noticed when cleaning up dune-pdelab-howto/src/convection-diffusion/dgldomain.cc that I do get warnings from the mpi library and the alberta and ug wrapper code in dune grid. However, I only see these warnings with the autotools buildsystem, not with the cmake buildsystem.
Christian an I tracked this down to cmake specifying the include directories
for the core modules with -isystem
, while autotools always uses -I
.
directories specified with -isystem
get special treatment: warnings from
headers found there are suppressed (except for explicit #warning
directives).
However, we could not find out why the cmake buildsystem is doing it, and how
to stop it from doing it. Even stranger, it does not happen for all
dependencies, e.g. for dune-pdelab -I
is used. Here is the full list:
-I/home/joe/Projekte/pdelab-2.4/dune-pdelab-howto/build-cmake
-I/home/joe/Projekte/pdelab-2.4/dune-pdelab-howto
-isystem /usr/lib/openmpi/include
-isystem /usr/lib/openmpi/include/openmpi
-isystem /home/joe/Projekte/pdelab-2.4/dune-common
-isystem /home/joe/Projekte/pdelab-2.4/dune-geometry
-isystem /home/joe/Projekte/pdelab-2.4/dune-typetree
-isystem /home/joe/Projekte/pdelab-2.4/dune-istl
-isystem /home/joe/Projekte/pdelab-2.4/dune-localfunctions
-isystem /home/joe/Projekte/pdelab-2.4/dune-grid
-I/home/joe/Projekte/pdelab-2.4/dune-pdelab
-isystem /home/joe/Projekte/pdelab-2.4/uginst/include
-isystem /usr/include/metis
-I/usr/include/alberta
This happened on Debian Jessie. cmake version was 3.0.2.
I'm attaching the compiler output in case that helps.