XMake: Fix NAZARA_DEBUG not being defined in unit tests and examples

This commit is contained in:
Jérôme Leclercq 2021-12-25 19:10:26 +01:00
parent 8ad01f9e6e
commit ec3da7e3f5
1 changed files with 4 additions and 1 deletions

View File

@ -150,6 +150,10 @@ set_symbols("debug", "hidden")
set_targetdir("./bin/$(plat)_$(arch)_$(mode)")
set_warnings("allextra")
if is_mode("debug") then
add_defines("NAZARA_DEBUG")
end
if is_plat("windows") then
set_runtimes(is_mode("debug") and "MDd" or "MD")
@ -187,7 +191,6 @@ for name, module in pairs(modules) do
add_defines("NAZARA_" .. name:upper() .. "_BUILD")
if is_mode("debug") then
add_defines("NAZARA_DEBUG")
add_defines("NAZARA_" .. name:upper() .. "_DEBUG")
end