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:
parent
bee756ee0f
commit
c536cb9cc0
@ -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()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user