fix: output logs on platform Windows

This commit is contained in:
YobeZhou 2025-05-26 23:07:34 +09:00
parent 1a212dfee0
commit 9337906544

View File

@ -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)