minor clean up with include_guard()

This commit is contained in:
hathach
2023-06-26 17:54:31 +07:00
parent 3cfb838ba7
commit 8aa28e63fb
3 changed files with 342 additions and 341 deletions

View File

@@ -75,8 +75,11 @@ endfunction()
#------------------------------------
# TinyUSB as library target
#------------------------------------
set(TINYUSB_TARGET "tinyusb")
set(TINYUSB_CONFIG_TARGET "tinyusb_config")
if (NOT DEFINED TINYUSB_TARGET)
set(TINYUSB_TARGET "tinyusb")
endif ()
set(TINYUSB_CONFIG_TARGET "${TINYUSB_TARGET}_config")
if (DEFINED TINYUSB_TARGET_PREFIX)
set(TINYUSB_TARGET "${TINYUSB_TARGET_PREFIX}${TINYUSB_TARGET}")