XMake: Fix NAZARA_DEBUG not being defined in unit tests and examples
This commit is contained in:
parent
8ad01f9e6e
commit
ec3da7e3f5
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue