diff --git a/tools/mocks/usb/usb_host_full_mock/usb/CMakeLists.txt b/tools/mocks/usb/usb_host_full_mock/usb/CMakeLists.txt index 1b7be7b438..8e19e384a6 100644 --- a/tools/mocks/usb/usb_host_full_mock/usb/CMakeLists.txt +++ b/tools/mocks/usb/usb_host_full_mock/usb/CMakeLists.txt @@ -7,7 +7,7 @@ message(STATUS "building full USB HOST MOCKS") idf_component_get_property(original_usb_dir usb COMPONENT_OVERRIDEN_DIR) idf_component_get_property(original_esp_hw_support_dir esp_hw_support COMPONENT_OVERRIDEN_DIR) if(NOT original_esp_hw_support_dir) - idf_component_get_property(original_esp_hw_support_dir esp_hw_support COMPONENT_SRCDIR) + idf_component_get_property(original_esp_hw_support_dir esp_hw_support COMPONENT_DIR) endif() idf_component_mock(INCLUDE_DIRS "${original_usb_dir}/include"