forked from espressif/esp-idf
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:
@@ -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
|
||||
|
Reference in New Issue
Block a user