Skip to content

Commit

Permalink
fix: Fix find fail by component registry
Browse files Browse the repository at this point in the history
  • Loading branch information
lhespress committed Mar 23, 2023
1 parent 399da61 commit afa0850
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# v2.1.1

Fix:
- Fix a bug of compile fail when use component registry

# v2.1.0

Features:
Expand Down
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ endforeach()

# Force esp_wifi to appear later than esp-now in link line since esp-now depends on esp_wifi.
idf_component_get_property(esp_wifi esp_wifi COMPONENT_LIB)
idf_build_get_property(build_components BUILD_COMPONENTS)

if("espressif__esp-now" IN_LIST build_components)
idf_component_get_property(esp-now espressif__esp-now COMPONENT_LIB)
Expand All @@ -79,5 +80,5 @@ target_link_libraries(${COMPONENT_LIB} INTERFACE $<TARGET_FILE:${esp_wifi}> $<TA

target_compile_options(${COMPONENT_LIB} PRIVATE -Wno-pointer-sign -Wno-format)

include(cmake_utilities)
include(package_manager)
cu_pkg_define_version(${CMAKE_CURRENT_LIST_DIR})
2 changes: 1 addition & 1 deletion idf_component.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: "2.1.0"
version: "2.1.1"
description: This package provides enhanced ESP-NOW functions which will be easy to integrate into product.
url: https://github.com/espressif/esp-now
issues: https://github.com/espressif/esp-now/issues
Expand Down

0 comments on commit afa0850

Please sign in to comment.