mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-16 18:52:25 +01:00
Add meson option for windows seh usage
Adds a meson option to toggle usage of windows SEH handling.
This commit is contained in:
parent
fa306fc85e
commit
a768450345
@ -1 +1,3 @@
|
||||
option('tests', type: 'boolean', value: true, description: 'Build the unit tests')
|
||||
|
||||
option('windows_seh', type: 'boolean', value: true, description: 'Enable Windows SEH exception handling when available')
|
||||
|
@ -10,6 +10,10 @@ conf_data = configuration_data()
|
||||
conf_data.set('CATCH_CONFIG_DEFAULT_REPORTER', 'console')
|
||||
conf_data.set('CATCH_CONFIG_CONSOLE_WIDTH', '80')
|
||||
|
||||
windows_seh = get_option('windows_seh')
|
||||
conf_data.set('CATCH_CONFIG_WINDOWS_SEH', windows_seh)
|
||||
conf_data.set('CATCH_CONFIG_NO_WINDOWS_SEH', not windows_seh)
|
||||
|
||||
configure_file(
|
||||
input: 'catch_user_config.hpp.in',
|
||||
output: 'catch_user_config.hpp',
|
||||
|
Loading…
Reference in New Issue
Block a user