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