CMake cannot find files, but I've listed the directories. Please help!

dfrenkel
Posts: 12
Joined: Sun Jul 22, 2018 1:52 pm

CMake cannot find files, but I've listed the directories. Please help!

Postby dfrenkel » Fri Oct 22, 2021 5:53 pm

I am receiving this fatal error because 3 files cannot be found:

Code: Select all

Warning! Could not find file "rmaker_mqtt_server.crt"
Warning! Could not find file "rmaker_claim_service_server.crt"
Warning! Could not find file "rmaker_ota_server.crt"
Reading CMake configuration...
LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 0 compatible libraries
Scanning dependencies...
No dependencies
Building in release mode
*** [.pio\build\esp32dev\rmaker_mqtt_server.crt.S] Source `components\esp_rainmaker\server_certs\rmaker_mqtt_server.crt' not found, needed by target `.pio\build\esp32dev\rmaker_mqtt_server.crt.S'.
However, I think my CMakeLists.txt is fine. The folder for those files is the "server_certs" which is part of the INCLUDE_DIRS

Code: Select all

set(include_dirs "."
                 "../components"
                 "../components/AccelStepper"
                 "../components/TMCSTEPPER"
                 "../components/RMaker"
                 "../components/arduino"
                 "../components/esp-rainmaker"
                 "../components/esp-rainmaker/components"
                 "../components/esp-rainmaker/examples/common"
                 "../components/esp-rainmaker/components/esp-insights/components"
                 "../components/esp-rainmaker/components/esp_rainmaker/server_certs"
                 )

idf_component_register(SRCS "app_main.cpp" "${srcs}"
                       INCLUDE_DIRS "${include_dirs}" )
Why isn't CMake finding those files???
Last edited by dfrenkel on Fri Oct 22, 2021 8:18 pm, edited 1 time in total.


Who is online

Users browsing this forum: No registered users and 118 guests