1
0
mirror of synced 2024-11-28 01:20:51 +01:00

Don't open a console window in release build

This fixes #21
This commit is contained in:
WerWolv 2020-12-05 14:09:32 +01:00
parent 7158d4d4ad
commit 4725ff6d5f

View File

@ -31,6 +31,7 @@ SET(CMAKE_CXX_FLAGS "${CMAKE_C_FLAGS} -DIMGUI_IMPL_OPENGL_LOADER_GLAD -DPYTHON_V
if (WIN32)
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -static-libstdc++ -static-libgcc -static")
SET(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -Wl,-subsystem,windows")
endif (WIN32)
SET(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -DRELEASE")