From fa7982727cb3227933b2027181e79af185c11bfb Mon Sep 17 00:00:00 2001 From: egutierrez Date: Fri, 24 Apr 2026 14:36:04 +0200 Subject: [PATCH] build(win): ocultar consola al lanzar (WIN32_EXECUTABLE TRUE) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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) --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5b75562..f0d65b1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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()