1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-01-14 06:42:58 +08:00

fix(cmake): fix msvc building error (#7401)

This commit is contained in:
zylalx1 2024-12-04 17:11:47 +08:00 committed by GitHub
parent bee756ee0f
commit c536cb9cc0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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