diff --git a/cmake/OS_Detection.cmake b/cmake/OS_Detection.cmake
index 9f9db9b1957de689dbcde76ac82fe74713eab530..ca52af1043fc5ea8061a33057a3cb77e499dd65c 100644
--- a/cmake/OS_Detection.cmake
+++ b/cmake/OS_Detection.cmake
@@ -170,7 +170,7 @@ if(WIN32)
       set(_CCOPT "-static -std=gnu11 ${CFLAGS_WARNINGS} -O3 -fPIC -fno-ident -ffast-math -fno-strict-aliasing -ftree-vectorize -mfpmath=sse -mmmx -msse2 -fno-asynchronous-unwind-tables -ffunction-sections -Wl,--gc-sections")
       if(NOT DAP_DBG_INFO)
           add_definitions ("-DNDEBUG")
-          set(_CCOPT "${_CCOPT} -mconsole -Wl,--strip-all")
+          set(_CCOPT "${_CCOPT} -Wl,--strip-all")
       endif()
     endif()