diff --git a/components/esp_wifi_remote/CMakeLists.txt b/components/esp_wifi_remote/CMakeLists.txt index 759ffb5d3..c99baa128 100644 --- a/components/esp_wifi_remote/CMakeLists.txt +++ b/components/esp_wifi_remote/CMakeLists.txt @@ -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) diff --git a/components/esp_wifi_remote/test/smoke_test/components/esp_hosted/CMakeLists.txt b/components/esp_wifi_remote/test/smoke_test/components/esp_hosted/CMakeLists.txt index f37c59bd1..daa27d1f0 100644 --- a/components/esp_wifi_remote/test/smoke_test/components/esp_hosted/CMakeLists.txt +++ b/components/esp_wifi_remote/test/smoke_test/components/esp_hosted/CMakeLists.txt @@ -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" diff --git a/components/esp_wifi_remote/test/smoke_test/main/CMakeLists.txt b/components/esp_wifi_remote/test/smoke_test/main/CMakeLists.txt index fb72d4a0a..fe54b8a66 100644 --- a/components/esp_wifi_remote/test/smoke_test/main/CMakeLists.txt +++ b/components/esp_wifi_remote/test/smoke_test/main/CMakeLists.txt @@ -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"