From f43f646ceb21fff020ac897daedcbb2ea0325fdf Mon Sep 17 00:00:00 2001 From: Frantisek Hrbata Date: Thu, 21 Aug 2025 09:26:17 +0200 Subject: [PATCH] fix(cmakev2/project): add ESP_PLATFORM to compile_definitions Set the ESP_PLATFORM macro to indicate to component sources that they are being compiled with ESP-IDF. Signed-off-by: Frantisek Hrbata --- tools/cmakev2/project.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/cmakev2/project.cmake b/tools/cmakev2/project.cmake index 7d54fbc9275..fdd754d9c4c 100644 --- a/tools/cmakev2/project.cmake +++ b/tools/cmakev2/project.cmake @@ -93,6 +93,7 @@ function(__init_project_configuration) "_GLIBCXX_HAVE_POSIX_SEMAPHORE" # posix-semaphores from components/pthread "_GNU_SOURCE") + list(APPEND compile_definitions "ESP_PLATFORM") list(APPEND compile_definitions "IDF_VER=\"${idf_ver}\"") list(APPEND compile_options "-ffunction-sections"