From 6a66ba8c071006f14d62b6202510799eed9b2825 Mon Sep 17 00:00:00 2001 From: Raphael Coeffic Date: Sun, 21 Nov 2021 08:10:16 +0100 Subject: [PATCH] Fixed bluetooth CMake defs --- radio/src/targets/horus/CMakeLists.txt | 8 ++++++-- radio/src/targets/taranis/CMakeLists.txt | 4 ++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/radio/src/targets/horus/CMakeLists.txt b/radio/src/targets/horus/CMakeLists.txt index f92669275..90748d414 100644 --- a/radio/src/targets/horus/CMakeLists.txt +++ b/radio/src/targets/horus/CMakeLists.txt @@ -240,8 +240,12 @@ endif() if(BLUETOOTH) add_definitions(-DBLUETOOTH) - set(TARGET_SRC ${TARGET_SRC} ../common/arm/stm32/bluetooth_driver.cpp) - set(SRC ${SRC} bluetooth.cpp) + set(FIRMWARE_SRC + ${FIRMWARE_SRC} + targets/common/arm/stm32/bluetooth_driver.cpp) + set(SRC + ${SRC} + bluetooth.cpp) add_definitions(-DHARDWARE_TRAINER_BLUETOOTH) endif() diff --git a/radio/src/targets/taranis/CMakeLists.txt b/radio/src/targets/taranis/CMakeLists.txt index 80556ef53..565a458d1 100644 --- a/radio/src/targets/taranis/CMakeLists.txt +++ b/radio/src/targets/taranis/CMakeLists.txt @@ -457,8 +457,8 @@ endif() if(BLUETOOTH) add_definitions(-DBLUETOOTH) - set(FIRMWARE_TARGET_SRC - ${FIRMWARE_TARGET_SRC} + set(FIRMWARE_SRC + ${FIRMWARE_SRC} targets/common/arm/stm32/bluetooth_driver.cpp) set(SRC ${SRC}