From 93379065440405f4a681a7b87d6281739f92d8ca Mon Sep 17 00:00:00 2001 From: YobeZhou Date: Mon, 26 May 2025 23:07:34 +0900 Subject: [PATCH] fix: output logs on platform Windows --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3970af4..70fe073 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -93,6 +93,11 @@ endif() target_compile_definitions(main PRIVATE LV_CONF_INCLUDE_SIMPLE) target_link_libraries(main lvgl lvgl::examples lvgl::demos lvgl::thorvg ${SDL2_LIBRARIES} m pthread) +# Platform configuration +if(CMAKE_HOST_WIN32) + target_link_libraries(main -mconsole) +endif() + # Only link freertos_config if the FreeRTOS directory exists if(USE_FREERTOS) target_link_libraries(main freertos_config)