1# Check toolchain is configured properly in cmake 2if(NOT ( ${CMAKE_SYSTEM_NAME} STREQUAL "Generic" AND ${CMAKE_C_COMPILER} MATCHES xtensa)) 3 message(FATAL_ERROR "Internal error, toolchain has not been set correctly by project " 4 "(or an invalid CMakeCache.txt file has been generated somehow)") 5endif() 6