fix(esp_common/cmake): do not rely on the target variable being set

Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
This commit is contained in:
Frantisek Hrbata
2025-04-17 10:01:09 +02:00
committed by BOT
parent b84e9b69ba
commit 63b7ae9ad1

View File

@@ -1,6 +1,8 @@
#
# Warn if the toolchain version doesn't match
#
idf_build_get_property(target IDF_TARGET)
if(NOT (${target} STREQUAL "linux" OR CMAKE_C_COMPILER_ID MATCHES "Clang"))
execute_process(
COMMAND ${CMAKE_C_COMPILER} -dumpmachine