mirror of
https://github.com/hathach/tinyusb.git
synced 2026-02-05 00:45:32 +00:00
clean up cmake, remove family_get_project_name()
This commit is contained in:
@ -207,11 +207,6 @@ function(family_add_subdirectory DIR)
|
||||
endif()
|
||||
endfunction()
|
||||
|
||||
function(family_get_project_name OUTPUT_NAME DIR)
|
||||
get_filename_component(SHORT_NAME ${DIR} NAME)
|
||||
set(${OUTPUT_NAME} ${TINYUSB_FAMILY_PROJECT_NAME_PREFIX}${SHORT_NAME} PARENT_SCOPE)
|
||||
endfunction()
|
||||
|
||||
function(family_initialize_project PROJECT DIR)
|
||||
# set output suffix to .elf (skip espressif and rp2040)
|
||||
if(NOT FAMILY STREQUAL "espressif" AND NOT FAMILY STREQUAL "rp2040")
|
||||
|
||||
@ -296,7 +296,7 @@ function(family_configure_host_example TARGET RTOS)
|
||||
# Pico-PIO-USB does not compile with all pico-sdk supported compilers, so check before enabling it
|
||||
is_compiler_supported_by_pico_pio_usb(PICO_PIO_USB_COMPILER_SUPPORTED)
|
||||
if (PICO_PIO_USB_COMPILER_SUPPORTED)
|
||||
family_add_pico_pio_usb(${PROJECT})
|
||||
family_add_pico_pio_usb(${TARGET})
|
||||
endif()
|
||||
endif()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user