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}