mirror of
https://github.com/espressif/esp-idf.git
synced 2026-09-22 13:01:16 +03:00
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 <frantisek.hrbata@espressif.com>
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user