my CMake file contains an error at this line:
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
CMake Error at C:/Program Files/CMake/share/cmake-3.27/Modules/CMakeDetermineCXXCompiler.cmake:48 (message):Could not find compiler set in environment variable CXX:
C:\MinGW\bin.
Where can I define a correct path for this?
Here ist the CMakeLists.txt:
# The following lines of boilerplate have to be in your project's CMakeLists
# in this exact order for cmake to work correctly
cmake_minimum_required(VERSION 3.16)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(generic_gpio)
and the other CMakelists.txt
idf_component_register(SRCS "gpio_example_main.c"
INCLUDE_DIRS ".")