fix(wifi_remote): Fix CMake to use inherent IDF build vars

IDF_VERSION_MAJOR, IDF_VERSION_MAJOR, rather than environmental variable {ESP_IDF_VERSION}
This commit is contained in:
David Cermak
2024-09-26 08:51:41 +02:00
parent ff5dac70b7
commit c454ec09e6
3 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
set(IDF_VER_DIR "idf_v$ENV{ESP_IDF_VERSION}")
set(IDF_VER_DIR "idf_v${IDF_VERSION_MAJOR}.${IDF_VERSION_MINOR}")
if(NOT CONFIG_ESP_WIFI_ENABLED)
set(src_wifi_is_remote esp_wifi_remote.c ${IDF_VER_DIR}/esp_wifi_with_remote.c esp_wifi_remote_net.c)

View File

@ -1,4 +1,4 @@
set(IDF_VER_DIR "idf_v$ENV{ESP_IDF_VERSION}")
set(IDF_VER_DIR "idf_v${IDF_VERSION_MAJOR}.${IDF_VERSION_MINOR}")
idf_component_register(SRCS "${IDF_VER_DIR}/esp_hosted_mock.c"
INCLUDE_DIRS "${IDF_VER_DIR}/include" "include"

View File

@ -1,4 +1,4 @@
set(IDF_VER_DIR "idf_v$ENV{ESP_IDF_VERSION}")
set(IDF_VER_DIR "idf_v${IDF_VERSION_MAJOR}.${IDF_VERSION_MINOR}")
idf_component_register(SRCS "smoke_test.c"
"${IDF_VER_DIR}/all_wifi_calls.c"