Add meson option for windows seh usage

Adds a meson option to toggle usage of windows SEH handling.
This commit is contained in:
Elliot 2024-09-04 10:21:18 -04:00
parent fa306fc85e
commit a768450345
2 changed files with 6 additions and 0 deletions

View File

@ -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')

View File

@ -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',