Skip to content

fix(usb_host_test): Fix cmake warninings about private include#459

Draft
peter-marcisovsky wants to merge 1 commit intomasterfrom
fix/cmake_warnings_test_app
Draft

fix(usb_host_test): Fix cmake warninings about private include#459
peter-marcisovsky wants to merge 1 commit intomasterfrom
fix/cmake_warnings_test_app

Conversation

@peter-marcisovsky
Copy link
Copy Markdown
Collaborator

Removing CMake warning when building target tests in host/usb/test/target_test

CMake Warning at /opt/esp/idf/tools/cmake/component_validation.cmake:86 (message):
Include directory '/__w/esp-usb/esp-usb/host/usb/private_include' belongs
to component usb but is being used by component common.  It is recommended
to define the component dependency for 'common' on the component usb, i.e.
'idf_component_register(...  REQUIRES usb)' in the CMakeLists.txt of
common, and specify the included directory as idf_component_register(...
INCLUDE_DIRS <dir relative to component>) in the CMakeLists.txt of
component usb.
Call Stack (most recent call first):
/opt/esp/idf/tools/cmake/component_validation.cmake:130 (__component_validation_check_include_dirs)
/opt/esp/idf/CMakeLists.txt:353 (__component_validation_run_checks)

Description

Related

Testing


Checklist

Before submitting a Pull Request, please ensure the following:

  • 🚨 This PR does not introduce breaking changes.
  • All CI checks (GH Actions) pass.
  • Documentation is updated as needed.
  • Tests are updated or added as necessary.
  • Code is well-commented, especially in complex areas.
  • Git history is clean — commits are squashed to the minimum necessary.

@peter-marcisovsky peter-marcisovsky self-assigned this Apr 1, 2026
@peter-marcisovsky peter-marcisovsky added the Component: usb_host Issue affects usb_host component label Apr 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Component: usb_host Issue affects usb_host component

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant