Skip to content
Snippets Groups Projects
Commit 5b0bdc28 authored by Christoph Grüninger's avatar Christoph Grüninger
Browse files

[CMake] Do not force folders dune/ and src/ for headercheck.

Otherwise the headers in dune-grid-howto and and in
dune-multidomain/tests cannot be checked.
parent 35f7920f
No related branches found
No related tags found
No related merge requests found
......@@ -2,10 +2,9 @@
# in the module and a global target depending on all checks
macro(setup_headercheck)
#glob for headers
file(GLOB_RECURSE src_headers "src/*.hh")
file(GLOB_RECURSE dune_headers "dune/*.hh")
file(GLOB_RECURSE all_headers "*.hh")
# strip hidden files
string(REGEX REPLACE "[^;]*/\\.[^;]*\\.hh;?" "" headers "${dune_headers};${src_headers}")
string(REGEX REPLACE "[^;]*/\\.[^;]*\\.hh;?" "" headers "${all_headers}")
set_property(GLOBAL PROPERTY headercheck_list ${headers})
#define headercheck target
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment