Allow passing compile-time configuration options through CMake

This commit is contained in:
Martin Hořeňovský 2022-02-02 15:36:58 +01:00
parent fc5552d27b
commit 33ffc3b6fc
No known key found for this signature in database
GPG key ID: DE48307B8B0D381A
8 changed files with 313 additions and 2 deletions

View file

@ -79,6 +79,15 @@ def concatenate_file(out, filename: str, expand_headers: bool) -> int:
# hundred thousands lines (~300k as of preview3 :-) )
if next_header in concatenated_headers:
continue
# Skip including the auto-generated user config file,
# because it has not been generated yet at this point.
# The code around it should be written so that just not including
# it is equivalent with all-default user configuration.
if next_header == 'catch2/catch_user_config.hpp':
concatenated_headers.add(next_header)
continue
concatenated_headers.add(next_header)
concatenated += concatenate_file(out, os.path.join(root_path, next_header), expand_headers)