From c536cb9cc0e67a662a83a67265876f45d098928a Mon Sep 17 00:00:00 2001 From: zylalx1 Date: Wed, 4 Dec 2024 17:11:47 +0800 Subject: [PATCH] fix(cmake): fix msvc building error (#7401) --- CMakeLists.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8751ddc07..42f4a5183 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3,10 +3,11 @@ cmake_minimum_required(VERSION 3.12.4) set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON) if(NOT ESP_PLATFORM) + project(lvgl LANGUAGES C HOMEPAGE_URL https://github.com/lvgl/lvgl) if(NOT (CMAKE_C_COMPILER_ID STREQUAL "MSVC")) - project(lvgl LANGUAGES C CXX ASM HOMEPAGE_URL https://github.com/lvgl/lvgl) + enable_language(CXX ASM) else() - project(lvgl LANGUAGES C CXX HOMEPAGE_URL https://github.com/lvgl/lvgl) + enable_language(CXX) endif() endif()