cmake: fix NDEBUG on Debug

wow i'm stupid
This commit is contained in:
Ronald Kinard 2015-01-29 00:17:47 -06:00
parent 70f046a320
commit 4d3a7dd8fb
2 changed files with 0 additions and 10 deletions

View File

@ -165,7 +165,6 @@ if(${SDL2_FOUND})
target_compile_definitions(${SRB2_SDL2_EXE_NAME} PRIVATE
-DHAVE_SDL
-DNDEBUG
)
#### Installation ####

View File

@ -667,17 +667,9 @@ static void I_StartupConsole(void)
{
HANDLE ci, co;
const INT32 ded = M_CheckParm("-dedicated");
#ifdef SDLMAIN
BOOL gotConsole = FALSE;
if (M_CheckParm("-console") || ded)
gotConsole = AllocConsole();
#else
BOOL gotConsole = TRUE;
if (M_CheckParm("-detachconsole"))
{
FreeConsole();
gotConsole = AllocConsole();
}
#ifdef _DEBUG
else if (M_CheckParm("-noconsole") && !ded)
#else
@ -687,7 +679,6 @@ static void I_StartupConsole(void)
FreeConsole();
gotConsole = FALSE;
}
#endif
if (gotConsole)
{