From 07697de2eb4a0459672056c9159e4c593d9eb97a Mon Sep 17 00:00:00 2001 From: Aleksander Strzebonski Date: Mon, 21 Oct 2024 18:09:54 +0200 Subject: [PATCH] samples: bluetooth: fast_pair: locator_tag: Fix build order Adds cmake dependency to workaround build order issues related to offsets.h not being generated before the file which includes it is built. Jira: NCSDK-28956 Signed-off-by: Aleksander Strzebonski --- .../fast_pair/locator_tag/src/motion_detector/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/samples/bluetooth/fast_pair/locator_tag/src/motion_detector/CMakeLists.txt b/samples/bluetooth/fast_pair/locator_tag/src/motion_detector/CMakeLists.txt index 1bd98b570d7d..bf69f2b03c12 100644 --- a/samples/bluetooth/fast_pair/locator_tag/src/motion_detector/CMakeLists.txt +++ b/samples/bluetooth/fast_pair/locator_tag/src/motion_detector/CMakeLists.txt @@ -14,6 +14,9 @@ if(CONFIG_APP_PLATFORM_DK) target_sources(app_motion_detector PRIVATE platform_dk.c) elseif(CONFIG_APP_PLATFORM_THINGY) target_sources(app_motion_detector PRIVATE platform_thingy.c) + # Workaround build order issue related to offsets.h not being generated + # before the platform_thingy.c file which includes it is built. + add_dependencies(app_motion_detector offsets_h) else() message(FATAL_ERROR "Unsupported platform") endif()