build(win): ocultar consola al lanzar (WIN32_EXECUTABLE TRUE)
El .exe se enlazaba como console app (mingw default), lo que abría una ventana de consola negra al lanzarlo desde el escritorio. WIN32_EXECUTABLE TRUE hace que CMake pase -mwindows al linker (SUBSYSTEM:WINDOWS), dejando solo la ventana ImGui. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -41,4 +41,6 @@ target_link_libraries(registry_dashboard PRIVATE SQLite::SQLite3)
|
||||
# Sockets: ws2_32 on Windows, nothing extra on Linux
|
||||
if(WIN32)
|
||||
target_link_libraries(registry_dashboard PRIVATE ws2_32)
|
||||
# GUI app: sin ventana de consola al lanzar (subsystem:windows / -mwindows)
|
||||
set_target_properties(registry_dashboard PROPERTIES WIN32_EXECUTABLE TRUE)
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user