ref: 5002e68be7d5d4624219ca02ee3b9a8e9c2d8160
parent: e866d7bd9b15bb07fc3485712ff50a4304a1f3d6
author: Clownacy <Clownacy@users.noreply.github.com>
date: Wed Apr 10 22:10:31 EDT 2019
Disable the Windows console window explicitly on all backends Not just MSVC
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -273,12 +273,14 @@
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