diff --git a/meson.build b/meson.build index 2081698de..2a2667a77 100644 --- a/meson.build +++ b/meson.build @@ -45,6 +45,10 @@ if host_machine.system() == 'windows' add_project_arguments('-DNOMINMAX', '-D_WIN32_WINNT=0x0602', language: 'cpp') endif +if get_option('debug') + add_project_arguments('-D_DEBUG', language: 'cpp') +endif + conf = configuration_data() conf.set_quoted('P_DATA', dataroot) if get_option('credit') != ''