Skip to content

Commit c454ec0

Browse files
committed
fix(wifi_remote): Fix CMake to use inherent IDF build vars
IDF_VERSION_MAJOR, IDF_VERSION_MAJOR, rather than environmental variable {ESP_IDF_VERSION}
1 parent ff5dac7 commit c454ec0

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

components/esp_wifi_remote/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
set(IDF_VER_DIR "idf_v$ENV{ESP_IDF_VERSION}")
1+
set(IDF_VER_DIR "idf_v${IDF_VERSION_MAJOR}.${IDF_VERSION_MINOR}")
22

33
if(NOT CONFIG_ESP_WIFI_ENABLED)
44
set(src_wifi_is_remote esp_wifi_remote.c ${IDF_VER_DIR}/esp_wifi_with_remote.c esp_wifi_remote_net.c)

components/esp_wifi_remote/test/smoke_test/components/esp_hosted/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
set(IDF_VER_DIR "idf_v$ENV{ESP_IDF_VERSION}")
1+
set(IDF_VER_DIR "idf_v${IDF_VERSION_MAJOR}.${IDF_VERSION_MINOR}")
22

33
idf_component_register(SRCS "${IDF_VER_DIR}/esp_hosted_mock.c"
44
INCLUDE_DIRS "${IDF_VER_DIR}/include" "include"

components/esp_wifi_remote/test/smoke_test/main/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
set(IDF_VER_DIR "idf_v$ENV{ESP_IDF_VERSION}")
1+
set(IDF_VER_DIR "idf_v${IDF_VERSION_MAJOR}.${IDF_VERSION_MINOR}")
22

33
idf_component_register(SRCS "smoke_test.c"
44
"${IDF_VER_DIR}/all_wifi_calls.c"

0 commit comments

Comments
 (0)