diff --git a/cmake/modules/Headercheck.cmake b/cmake/modules/Headercheck.cmake index bc4b5ba18d4766ae67d2d154337488811fb14379..2f4db5059850b9b7847e1528f20d340d45967a22 100644 --- a/cmake/modules/Headercheck.cmake +++ b/cmake/modules/Headercheck.cmake @@ -1,15 +1,11 @@ # 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)