Skip to content
Snippets Groups Projects
Commit 4d3a7dd8 authored by Eidolon's avatar Eidolon
Browse files

cmake: fix NDEBUG on Debug

wow i'm stupid
parent 70f046a3
No related branches found
No related tags found
No related merge requests found
......@@ -165,7 +165,6 @@ if(${SDL2_FOUND})
target_compile_definitions(${SRB2_SDL2_EXE_NAME} PRIVATE
-DHAVE_SDL
-DNDEBUG
)
#### Installation ####
......
......@@ -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)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment