meson: set _DEBUG on all platforms for debug builds

This commit is contained in:
Myaamori 2020-11-19 18:37:41 +00:00 committed by odrling
parent b36b81acd7
commit 44927acc6e
1 changed files with 4 additions and 0 deletions

View File

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