Skip to content

Commit

Permalink
samples: bluetooth: fast_pair: locator_tag: Fix build order
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
alstrzebonski authored and rlubos committed Oct 23, 2024
1 parent 7e464db commit 07697de
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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()

0 comments on commit 07697de

Please sign in to comment.