Skip to content

Commit

Permalink
fix(wifi_remote): Fix CMake to use inherent IDF build vars
Browse files Browse the repository at this point in the history
IDF_VERSION_MAJOR, IDF_VERSION_MAJOR, rather than environmental variable {ESP_IDF_VERSION}
  • Loading branch information
david-cermak committed Sep 26, 2024
1 parent ff5dac7 commit c454ec0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion components/esp_wifi_remote/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
Original file line number Diff line number Diff line change
@@ -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"
Expand Down

0 comments on commit c454ec0

Please sign in to comment.