Skip to content

Commit 8badc0e

Browse files
committed
Add fixture help message option for UNITY_CUSTOM_HELP_MSG
1 parent 0921c26 commit 8badc0e

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

meson.build

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ project('unity', 'c',
2626
build_fixture = get_option('extension_fixture')
2727
build_memory = get_option('extension_memory')
2828
support_double = get_option('support_double')
29+
fixture_help_message = get_option('fixture_help_message')
2930

3031
unity_args = []
3132
unity_src = []
@@ -35,6 +36,9 @@ subdir('src')
3536

3637
if build_fixture
3738
subdir('extras/fixture/src')
39+
if fixture_help_message != ''
40+
unity_args += '-DUNITY_CUSTOM_HELP_MSG=' + fixture_help_message
41+
endif
3842
endif
3943

4044
if build_memory.enabled() or (build_memory.auto() and build_fixture)

meson_options.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
option('extension_fixture', type: 'boolean', value: false, description: 'Whether to enable the fixture extension.')
22
option('extension_memory', type: 'feature', value: 'auto', description: 'Whether to enable the memory extension. By default this is automatically enabled when extension_fixture is enabled.')
33
option('support_double', type: 'boolean', value: false, description: 'Whether to enable double precision floating point assertions.')
4+
option('fixture_help_message', type: 'string', description: 'If the fixture extension is enabled, this allows a custom help message to be defined.')

0 commit comments

Comments
 (0)