PlatformIO Community

Build fails if I use FetchContent

I am trying to add esp-idf-lib using FetchContent to my platfromio project.
I have created next config:

cmake_minimum_required(VERSION 3.16.0)   
include(FetchContent)
FetchContent_Declare(
  espidflib
  GIT_REPOSITORY https://github.com/UncleRus/esp-idf-lib.git
  GIT_TAG        0.8.0
)
FetchContent_MakeAvailable(espidflib)
set(EXTRA_COMPONENT_DIRS ${espidflib_SOURCE_DIR}/components)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(reactor-firmware)

When I try to build it i have the next output:

Processing test_project (platform: espressif32@3.2.0; board: esp32dev; framework: espidf; monitor_speed: 115200; monitor_filters: esp32_exception_decoder; board_build.partitions: partitions_two_ota.csv; board_build.embed_txtfiles:
src/html/index.html)
--------------------------------------------------------------------------------------------------------------------------------CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/esp32dev.html
PLATFORM: Espressif 32 (3.2.0) > Espressif ESP32 Dev Module
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
DEBUG: Current (esp-prog) External (esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa)
PACKAGES:
 - framework-espidf 3.40200.210118 (4.2.0)
 - tool-cmake 3.16.4
 - tool-esptoolpy 1.30000.201119 (3.0.0)
 - tool-idf 1.0.1
 - tool-mconf 1.4060000.20190628 (406.0.0)
 - tool-ninja 1.9.0
 - toolchain-esp32ulp 1.22851.191205 (2.28.51)
 - toolchain-xtensa32 2.80400.210211 (8.4.0)
Reading CMake configuration...
-- Building ESP-IDF components for target esp32
-- Could NOT find Perl (missing: PERL_EXECUTABLE) 
-- App "reactor-firmware" version: 3de9722-dirty
-- Adding linker script C:/Users/a_user/.platformio/packages/framework-espidf/components/esp_rom/esp32/ld/esp32.rom.newlib-time.ld
-- Adding linker script C:/Users/a_user/.platformio/packages/framework-espidf/components/esp_rom/esp32/ld/esp32.rom.ld
-- Adding linker script C:/Users/a_user/.platformio/packages/framework-espidf/components/esp_rom/esp32/ld/esp32.rom.libgcc.ld    
-- Adding linker script C:/Users/a_user/.platformio/packages/framework-espidf/components/esp_rom/esp32/ld/esp32.rom.newlib-data.ld
-- Adding linker script C:/Users/a_user/.platformio/packages/framework-espidf/components/esp_rom/esp32/ld/esp32.rom.syscalls.ld  
-- Adding linker script C:/Users/a_user/.platformio/packages/framework-espidf/components/esp_rom/esp32/ld/esp32.rom.newlib-funcs.ld
-- Adding linker script C:/Users/a_user/Documents/Projects/Cerera/firmware_environment/reactor-firmware/.pio/build/test_project/esp-idf/esp32/esp32_out.ld
-- Adding linker script C:/Users/a_user/.platformio/packages/framework-espidf/components/esp32/ld/esp32.project.ld.in
-- Adding linker script C:/Users/a_user/.platformio/packages/framework-espidf/components/esp32/ld/esp32.peripherals.ld
-- Components: ads111x app_trace app_update asio bh1750 bme680 bmp180 bmp280 bootloader bootloader_support bt cbor ccs811 coap color console cxx dht driver ds1302 ds1307 ds18x20 ds3231 ds3502 efuse encoder esp-tls esp32 esp_adc_cal esp_common esp_eth esp_event esp_gdbstub esp_hid esp_http_client esp_http_server esp_https_ota esp_https_server esp_idf_lib_helpers esp_ipc esp_local_ctrl esp_netif esp_ringbuf esp_rom esp_serial_slave_link esp_system esp_timer esp_websocket_client esp_wifi espcoredump esptool_py expat fatfs framebuffer freemodbus freertos hd44780 heap hmc5883l hx711 i2cdev idf_test ina219 ina260 ina3221 jsmn json led_strip led_strip_spi lib8tion libsodium lm75 log lwip max31725 max7219 mbedtls mcp23008 mcp23x17 mcp342x mcp4725 mcp960x mcp9808 mdns mhz19b mqtt ms5611 newlib nghttp noise nvs_flash onewire openssl partition_table pca9685 pcf8563 pcf8574 pcf8575 pcf8591 perfmon protobuf-c protocomm pthread qmc5883l rda5807m sdmmc sgp40 sht3x sht4x si7021 soc spi_flash spiffs tca9548 tca95x5 tcp_transport tcpip_adapter tda74xx tinyusb tsl2561 tsl2591 tsl4531 tsys01 ulp ultrasonic unity vfs wear_levelling wiegand wifi_provisioning wpa_supplicant xtensa
-- Component paths: C:/Users/a_user/Documents/Projects/Cerera/firmware_environment/reactor-firmware/.pio/build/test_project/_deps/espidflib-src/components/ads111x C:/Users/a_user/.platformio/packages/framework-espidf/components/app_trace C:/Users/a_user/.platformio/packages/framework-espidf/components/app_update C:/Users/a_user/.platformio/packages/framework-espidf/components/asio C:/Users/a_user/Documents/Projects/Cerera/firmware_environment/reactor-firmware/.pio/build/test_project/_deps/espidflib-src/components/bh1750 C:/Users/a_user/Documents/Projects/Cerera/firmware_environment/reactor-firmware/.pio/build/test_project/_deps/espidflib-src/components/bme680 C:/Users/a_user/Documents/Projects/Cerera/firmware_environment/reactor-firmware/.pio/build/test_project/_deps/espidflib-src/components/bmp180 C:/Users/a_user/Documents/Projects/Cerera/firmware_environment/reactor-firmware/.pio/build/test_project/_deps/espidflib-src/components/bmp280 C:/Users/a_user/.platformio/packages/framework-espidf/components/bootloader C:/Users/a_user/.platformio/packages/framework-espidf/components/bootloader_support C:/Users/a_user/.platformio/packages/framework-espidf/components/bt C:/Users/a_user/.platformio/packages/framework-espidf/components/cbor C:/Users/a_user/Documents/Projects/Cerera/firmware_environment/reactor-firmware/.pio/build/test_project/_deps/espidflib-src/components/ccs811 C:/Users/a_user/.platformio/packages/framework-espidf/components/coap C:/Users/a_user/Documents/Projects/Cerera/firmware_environment/reactor-firmware/.pio/build/test_project/_deps/espidflib-src/components/color C:/Users/a_user/.platformio/packages/framework-espidf/components/console C:/Users/a_user/.platformio/packages/framework-espidf/components/cxx C:/Users/a_user/Documents/Projects/Cerera/firmware_environment/reactor-firmware/.pio/build/test_project/_deps/espidflib-src/components/dht C:/Users/a_user/.platformio/packages/framework-espidf/components/driver C:/Users/a_user/Documents/Projects/Cerera/firmware_environment/reactor-firmware/.pio/build/test_project/_deps/espidflib-src/components/ds1302 C:/Users/a_user/Documents/Projects/Cerera/firmware_environment/reactor-firmware/.pio/build/test_project/_deps/espidflib-src/components/ds1307 C:/Users/a_user/Documents/Projects/Cerera/firmware_environment/reactor-firmware/.pio/build/test_project/_deps/espidflib-src/components/ds18x20 C:/Users/a_user/Documents/Projects/Cerera/firmware_environment/reactor-firmware/.pio/build/test_project/_deps/espidflib-src/components/ds3231 C:/Users/a_user/Documents/Projects/Cerera/firmware_environment/reactor-firmware/.pio/build/test_project/_deps/espidflib-src/components/ds3502 C:/Users/a_user/.platformio/packages/framework-espidf/components/efuse C:/Users/a_user/Documents/Projects/Cerera/firmware_environment/reactor-firmware/.pio/build/test_project/_deps/espidflib-src/components/encoder C:/Users/a_user/.platformio/packages/framework-espidf/components/esp-tls C:/Users/a_user/.platformio/packages/framework-espidf/components/esp32 C:/Users/a_user/.platformio/packages/framework-espidf/components/esp_adc_cal C:/Users/a_user/.platformio/packages/framework-espidf/components/esp_common C:/Users/a_user/.platformio/packages/framework-espidf/components/esp_eth C:/Users/a_user/.platformio/packages/framework-espidf/components/esp_event C:/Users/a_user/.platformio/packages/framework-espidf/components/esp_gdbstub C:/Users/a_user/.platformio/packages/framework-espidf/components/esp_hid C:/Users/a_user/.platformio/packages/framework-espidf/components/esp_http_client C:/Users/a_user/.platformio/packages/framework-espidf/components/esp_http_server C:/Users/a_user/.platformio/packages/framework-espidf/components/esp_https_ota C:/Users/a_user/.platformio/packages/framework-espidf/components/esp_https_server C:/Users/a_user/Documents/Projects/Cerera/firmware_environment/reactor-firmware/.pio/build/test_project/_deps/espidflib-src/components/esp_idf_lib_helpers C:/Users/a_user/.platformio/packages/framework-espidf/components/esp_ipc C:/Users/a_user/.platformio/packages/framework-espidf/components/esp_local_ctrl C:/Users/a_user/.platformio/packages/framework-espidf/components/esp_netif C:/Users/a_user/.platformio/packages/framework-espidf/components/esp_ringbuf 
C:/Users/a_user/.platformio/packages/framework-espidf/components/esp_rom C:/Users/a_user/.platformio/packages/framework-espidf/components/esp_serial_slave_link C:/Users/a_user/.platformio/packages/framework-espidf/components/esp_system C:/Users/a_user/.platformio/packages/framework-espidf/components/esp_timer C:/Users/a_user/.platformio/packages/framework-espidf/components/esp_websocket_client C:/Users/a_user/.platformio/packages/framework-espidf/components/esp_wifi C:/Users/a_user/.platformio/packages/framework-espidf/components/espcoredump C:/Users/a_user/.platformio/packages/framework-espidf/components/esptool_py C:/Users/a_user/.platformio/packages/framework-espidf/components/expat C:/Users/a_user/.platformio/packages/framework-espidf/components/fatfs C:/Users/a_user/Documents/Projects/Cerera/firmware_environment/reactor-firmware/.pio/build/test_project/_deps/espidflib-src/components/framebuffer C:/Users/a_user/.platformio/packages/framework-espidf/components/freemodbus C:/Users/a_user/.platformio/packages/framework-espidf/components/freertos C:/Users/a_user/Documents/Projects/Cerera/firmware_environment/reactor-firmware/.pio/build/test_project/_deps/espidflib-src/components/hd44780 C:/Users/a_user/.platformio/packages/framework-espidf/components/heap C:/Users/a_user/Documents/Projects/Cerera/firmware_environment/reactor-firmware/.pio/build/test_project/_deps/espidflib-src/components/hmc5883l C:/Users/a_user/Documents/Projects/Cerera/firmware_environment/reactor-firmware/.pio/build/test_project/_deps/espidflib-src/components/hx711 C:/Users/a_user/Documents/Projects/Cerera/firmware_environment/reactor-firmware/.pio/build/test_project/_deps/espidflib-src/components/i2cdev C:/Users/a_user/.platformio/packages/framework-espidf/components/idf_test C:/Users/a_user/Documents/Projects/Cerera/firmware_environment/reactor-firmware/.pio/build/test_project/_deps/espidflib-src/components/ina219 C:/Users/a_user/Documents/Projects/Cerera/firmware_environment/reactor-firmware/.pio/build/test_project/_deps/espidflib-src/components/ina260 C:/Users/a_user/Documents/Projects/Cerera/firmware_environment/reactor-firmware/.pio/build/test_project/_deps/espidflib-src/components/ina3221 C:/Users/a_user/.platformio/packages/framework-espidf/components/jsmn C:/Users/a_user/.platformio/packages/framework-espidf/components/json C:/Users/a_user/Documents/Projects/Cerera/firmware_environment/reactor-firmware/.pio/build/test_project/_deps/espidflib-src/components/led_strip C:/Users/a_user/Documents/Projects/Cerera/firmware_environment/reactor-firmware/.pio/build/test_project/_deps/espidflib-src/components/led_strip_spi C:/Users/a_user/Documents/Projects/Cerera/firmware_environment/reactor-firmware/.pio/build/test_project/_deps/espidflib-src/components/lib8tion C:/Users/a_user/.platformio/packages/framework-espidf/components/libsodium C:/Users/a_user/Documents/Projects/Cerera/firmware_environment/reactor-firmware/.pio/build/test_project/_deps/espidflib-src/components/lm75 C:/Users/a_user/.platformio/packages/framework-espidf/components/log C:/Users/a_user/.platformio/packages/framework-espidf/components/lwip C:/Users/a_user/Documents/Projects/Cerera/firmware_environment/reactor-firmware/.pio/build/test_project/_deps/espidflib-src/components/max31725 C:/Users/a_user/Documents/Projects/Cerera/firmware_environment/reactor-firmware/.pio/build/test_project/_deps/espidflib-src/components/max7219 C:/Users/a_user/.platformio/packages/framework-espidf/components/mbedtls C:/Users/a_user/Documents/Projects/Cerera/firmware_environment/reactor-firmware/.pio/build/test_project/_deps/espidflib-src/components/mcp23008 C:/Users/a_user/Documents/Projects/Cerera/firmware_environment/reactor-firmware/.pio/build/test_project/_deps/espidflib-src/components/mcp23x17 C:/Users/a_user/Documents/Projects/Cerera/firmware_environment/reactor-firmware/.pio/build/test_project/_deps/espidflib-src/components/mcp342x C:/Users/a_user/Documents/Projects/Cerera/firmware_environment/reactor-firmware/.pio/build/test_project/_deps/espidflib-src/components/mcp4725 C:/Users/a_user/Documents/Projects/Cerera/firmware_environment/reactor-firmware/.pio/build/test_project/_deps/espidflib-src/components/mcp960x C:/Users/a_user/Documents/Projects/Cerera/firmware_environment/reactor-firmware/.pio/build/test_project/_deps/espidflib-src/components/mcp9808 C:/Users/a_user/.platformio/packages/framework-espidf/components/mdns C:/Users/a_user/Documents/Projects/Cerera/firmware_environment/reactor-firmware/.pio/build/test_project/_deps/espidflib-src/components/mhz19b C:/Users/a_user/.platformio/packages/framework-espidf/components/mqtt C:/Users/a_user/Documents/Projects/Cerera/firmware_environment/reactor-firmware/.pio/build/test_project/_deps/espidflib-src/components/ms5611 C:/Users/a_user/.platformio/packages/framework-espidf/components/newlib C:/Users/a_user/.platformio/packages/framework-espidf/components/nghttp C:/Users/a_user/Documents/Projects/Cerera/firmware_environment/reactor-firmware/.pio/build/test_project/_deps/espidflib-src/components/noise C:/Users/a_user/.platformio/packages/framework-espidf/components/nvs_flash C:/Users/a_user/Documents/Projects/Cerera/firmware_environment/reactor-firmware/.pio/build/test_project/_deps/espidflib-src/components/onewire C:/Users/a_user/.platformio/packages/framework-espidf/components/openssl C:/Users/a_user/.platformio/packages/framework-espidf/components/partition_table C:/Users/a_user/Documents/Projects/Cerera/firmware_environment/reactor-firmware/.pio/build/test_project/_deps/espidflib-src/components/pca9685 C:/Users/a_user/Documents/Projects/Cerera/firmware_environment/reactor-firmware/.pio/build/test_project/_deps/espidflib-src/components/pcf8563 C:/Users/a_user/Documents/Projects/Cerera/firmware_environment/reactor-firmware/.pio/build/test_project/_deps/espidflib-src/components/pcf8574 C:/Users/a_user/Documents/Projects/Cerera/firmware_environment/reactor-firmware/.pio/build/test_project/_deps/espidflib-src/components/pcf8575 C:/Users/a_user/Documents/Projects/Cerera/firmware_environment/reactor-firmware/.pio/build/test_project/_deps/espidflib-src/components/pcf8591 C:/Users/a_user/.platformio/packages/framework-espidf/components/perfmon C:/Users/a_user/.platformio/packages/framework-espidf/components/protobuf-c C:/Users/a_user/.platformio/packages/framework-espidf/components/protocomm C:/Users/a_user/.platformio/packages/framework-espidf/components/pthread C:/Users/a_user/Documents/Projects/Cerera/firmware_environment/reactor-firmware/.pio/build/test_project/_deps/espidflib-src/components/qmc5883l C:/Users/a_user/Documents/Projects/Cerera/firmware_environment/reactor-firmware/.pio/build/test_project/_deps/espidflib-src/components/rda5807m C:/Users/a_user/.platformio/packages/framework-espidf/components/sdmmc C:/Users/a_user/Documents/Projects/Cerera/firmware_environment/reactor-firmware/.pio/build/test_project/_deps/espidflib-src/components/sgp40 C:/Users/a_user/Documents/Projects/Cerera/firmware_environment/reactor-firmware/.pio/build/test_project/_deps/espidflib-src/components/sht3x C:/Users/a_user/Documents/Projects/Cerera/firmware_environment/reactor-firmware/.pio/build/test_project/_deps/espidflib-src/components/sht4x C:/Users/a_user/Documents/Projects/Cerera/firmware_environment/reactor-firmware/.pio/build/test_project/_deps/espidflib-src/components/si7021 C:/Users/a_user/.platformio/packages/framework-espidf/components/soc C:/Users/a_user/.platformio/packages/framework-espidf/components/spi_flash 
C:/Users/a_user/.platformio/packages/framework-espidf/components/spiffs C:/Users/a_user/Documents/Projects/Cerera/firmware_environment/reactor-firmware/.pio/build/test_project/_deps/espidflib-src/components/tca9548 C:/Users/a_user/Documents/Projects/Cerera/firmware_environment/reactor-firmware/.pio/build/test_project/_deps/espidflib-src/components/tca95x5 C:/Users/a_user/.platformio/packages/framework-espidf/components/tcp_transport C:/Users/a_user/.platformio/packages/framework-espidf/components/tcpip_adapter C:/Users/a_user/Documents/Projects/Cerera/firmware_environment/reactor-firmware/.pio/build/test_project/_deps/espidflib-src/components/tda74xx C:/Users/a_user/.platformio/packages/framework-espidf/components/tinyusb C:/Users/a_user/Documents/Projects/Cerera/firmware_environment/reactor-firmware/.pio/build/test_project/_deps/espidflib-src/components/tsl2561 C:/Users/a_user/Documents/Projects/Cerera/firmware_environment/reactor-firmware/.pio/build/test_project/_deps/espidflib-src/components/tsl2591 C:/Users/a_user/Documents/Projects/Cerera/firmware_environment/reactor-firmware/.pio/build/test_project/_deps/espidflib-src/components/tsl4531 C:/Users/a_user/Documents/Projects/Cerera/firmware_environment/reactor-firmware/.pio/build/test_project/_deps/espidflib-src/components/tsys01 C:/Users/a_user/.platformio/packages/framework-espidf/components/ulp C:/Users/a_user/Documents/Projects/Cerera/firmware_environment/reactor-firmware/.pio/build/test_project/_deps/espidflib-src/components/ultrasonic C:/Users/a_user/.platformio/packages/framework-espidf/components/unity C:/Users/a_user/.platformio/packages/framework-espidf/components/vfs C:/Users/a_user/.platformio/packages/framework-espidf/components/wear_levelling C:/Users/a_user/Documents/Projects/Cerera/firmware_environment/reactor-firmware/.pio/build/test_project/_deps/espidflib-src/components/wiegand 
C:/Users/a_user/.platformio/packages/framework-espidf/components/wifi_provisioning C:/Users/a_user/.platformio/packages/framework-espidf/components/wpa_supplicant C:/Users/a_user/.platformio/packages/framework-espidf/components/xtensa
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/a_user/Documents/Projects/Cerera/firmware_environment/reactor-firmware/.pio/build/test_project

fatal: not a git repository (or any of the parent directories): .git

Error: Couldn't find the main target of the project!

Is there a way yo add esp-idf component without using submodules?