Disable the Windows console window explicitly on all backends

Not just MSVC
This commit is contained in:
Clownacy 2019-04-11 02:10:31 +01:00
parent e866d7bd9b
commit 5002e68be7

View file

@ -273,13 +273,15 @@ if (NOT CMAKE_BUILD_TYPE STREQUAL "Debug")
endif()
endif()
if (WIN32)
set_target_properties(CSE2 PROPERTIES WIN32_EXECUTABLE YES) # Disable the console window
endif()
if (MSVC)
if (STATIC)
message(WARNING "Static builds are not available for MSVC")
endif()
set_target_properties(CSE2 PROPERTIES WIN32_EXECUTABLE YES) # Disable the console window
# Find dependencies
# In MSVC we just use our own provided copy of SDL2 and FreeType