diff options
| author | LiPeng <[email protected]> | 2025-09-11 16:53:25 +0800 |
|---|---|---|
| committer | sakumisu <[email protected]> | 2025-09-11 16:58:55 +0800 |
| commit | 102af3be37da5123f48d673a073f3ec34386d20d (patch) | |
| tree | 66950843248f0714dda20c45dc66059f4605fede | |
| parent | 347df77372b856077fbc419aca5ed13dd5e4c731 (diff) | |
fix: Remove usb component private requirement for idf v6
| -rw-r--r-- | CMakeLists.txt | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 7c6c7e62..00e2ddc7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -64,6 +64,10 @@ elseif(ESP_PLATFORM) idf_component_get_property(freertos_include freertos ORIG_INCLUDE_PATH) + set(priv_req esp_mm esp_netif esp_timer) + if(${IDF_VERSION_MAJOR} LESS 6) + list(APPEND priv_req usb) + endif() idf_component_register( SRCS ${cherryusb_srcs} @@ -71,7 +75,7 @@ elseif(ESP_PLATFORM) ${cherryusb_incs} ${freertos_include} PRIV_REQUIRES - usb esp_mm esp_netif esp_timer + ${priv_req} LDFRAGMENTS ${ldfragments} ) |
