diff options
| author | hathach <[email protected]> | 2023-06-26 17:54:31 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2023-06-26 17:54:31 +0700 |
| commit | 8aa28e63fbcb4f38b62a8e111e29ee48b710db6b (patch) | |
| tree | b8c6722c67d6d3da780d8dc8624b259c89bc30f6 /src | |
| parent | 3cfb838ba7f1f1a12203d36c9cbb615178af2cf7 (diff) | |
minor clean up with include_guard()
Diffstat (limited to 'src')
| -rw-r--r-- | src/CMakeLists.txt | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index b99c7be6e..8f7f38589 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -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}") |
