diff --git a/build/Helpers.lua b/build/Helpers.lua index 0625bfefd..f2cb51451 100644 --- a/build/Helpers.lua +++ b/build/Helpers.lua @@ -107,7 +107,7 @@ function SetupNativeProject() defines { "DEBUG" } filter { "configurations:DebugOpt" } - defines { "DEBUG", "_ITERATOR_DEBUG_LEVEL=0" } + defines { "DEBUG" } optimize "Debug" runtime "Release" @@ -118,6 +118,9 @@ function SetupNativeProject() -- Compiler-specific options filter { "toolset:msc*" } + filter { "configurations:DebugOpt" } + defines { "_ITERATOR_DEBUG_LEVEL=0" } + buildoptions { msvc_buildflags } defines { msvc_cpp_defines }