From ccbf65e5ea6a710f0a61a9db2a0cea7ed949fb65 Mon Sep 17 00:00:00 2001 From: Tobias Leibner <tobias.leibner@uni-muenster.de> Date: Fri, 22 Jan 2016 15:24:38 +0100 Subject: [PATCH] [CMakeLists] disable warning from dependent modules (copied from dune-xt-common) --- CMakeLists.txt | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index e2b970652..01219ef02 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -42,6 +42,16 @@ list(APPEND COMMON_HEADER ${HEADER_LIST}) endforeach(_mod DEPENDENCIES) set_source_files_properties(${COMMON_HEADER} PROPERTIES HEADER_FILE_ONLY 1) +#disable most warnings from dependent modules +foreach(_mod ${ALL_DEPENDENCIES}) + dune_module_to_uppercase(_upper_case "${_mod}") + if(${_mod}_INCLUDE_DIRS) + foreach( _idir ${${_mod}_INCLUDE_DIRS} ) + add_definitions("-isystem ${_idir}") + endforeach( _idir ) + endif(${_mod}_INCLUDE_DIRS) +endforeach(_mod DEPENDENCIES) + add_subdirectory(dune) add_subdirectory(doc) -- GitLab