esp32: move toolchain check

This commit is contained in:
Renz Bagaporo
2021-03-10 19:47:40 +08:00
parent a202a604d8
commit daa13b3f62
3 changed files with 11 additions and 14 deletions
+5
View File
@@ -0,0 +1,5 @@
# Check toolchain is configured properly in cmake
if(NOT ( ${CMAKE_SYSTEM_NAME} STREQUAL "Generic" AND ${CMAKE_C_COMPILER} MATCHES xtensa))
message(FATAL_ERROR "Internal error, toolchain has not been set correctly by project "
"(or an invalid CMakeCache.txt file has been generated somehow)")
endif()