From 12e8f8be3f59200ab6f11ec116ae6391608afd35 Mon Sep 17 00:00:00 2001 From: Francisco Herrera Date: Wed, 10 Jul 2024 19:22:59 -0300 Subject: [PATCH] try to fix for esp-idf --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e4c5dd31..dd0eba6f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,7 @@ cmake_minimum_required(VERSION 3.5) -project(u8g2) +if(NOT DEFINED ESP_PLATFORM) + project(u8g2) +endif() set(COMPONENT_ADD_INCLUDEDIRS csrc) file(GLOB COMPONENT_SRCS csrc/*.c)