diff --git a/CMakeLists.txt b/CMakeLists.txt index 5bf2f197..8b011fba 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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