Skip to content
Snippets Groups Projects
Commit 4a1df1be authored by Dominic Kempf's avatar Dominic Kempf
Browse files

[Cmake][bugfix] Still do the header globbing

It seems the exclusion macros need to have a full list of headers
to work. This is hopefully the last commit...
parent c62d6143
No related branches found
No related tags found
No related merge requests found
# sets up a global property with the names of all header files
# in the module and a global target depending on all checks
macro(setup_headercheck)
if(ENABLE_HEADERCHECK)
#glob for headers
file(GLOB_RECURSE all_headers "*.hh")
# strip hidden files
string(REGEX REPLACE "[^;]*/\\.[^;]*\\.hh;?" "" headers "${all_headers}")
set_property(GLOBAL PROPERTY headercheck_list ${headers})
else()
set_property(GLOBAL PROPERTY headercheck_list "")
endif()
#glob for headers
file(GLOB_RECURSE all_headers "*.hh")
# strip hidden files
string(REGEX REPLACE "[^;]*/\\.[^;]*\\.hh;?" "" headers "${all_headers}")
set_property(GLOBAL PROPERTY headercheck_list ${headers})
#define headercheck target
dune_common_script_dir(SCRIPT_DIR)
......
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