"Unknown arguments specified" error when building ESP-IDF project using CMake

97 views Asked by At

While I am compiling the hello world example on ESP-IDF on Windows. I got this error:

Compiler supported targets: 
-- Configuring incomplete, errors occurred!
CMake Error at C:/Espressif/frameworks/esp-idf-v5.1.2/components/xtensa/project_include.cmake:17 (if):
See also "C:/Espressif/frameworks/esp-idf-v5.1.2/workspace/hello_world/build/CMakeFiles/CMakeOutput.log".
  if given arguments:

    "NOT" "(" "Generic" "STREQUAL" "Generic" "AND" "MATCHES" "xtensa" ")"

  Unknown arguments specified
Call Stack (most recent call first):
  C:/Espressif/frameworks/esp-idf-v5.1.2/tools/cmake/build.cmake:398 (include)
  C:/Espressif/frameworks/esp-idf-v5.1.2/tools/cmake/build.cmake:620 (__build_process_project_includes)
  C:/Espressif/frameworks/esp-idf-v5.1.2/tools/cmake/project.cmake:547 (idf_build_process)
  CMakeLists.txt:6 (project)

I tried to uninstall the environment and reinstall it to check if there are any missing configuration, but the same results.

0

There are 0 answers