Skip to content

Commit

Permalink
Force board_lib to depend on minimal_board_lib
Browse files Browse the repository at this point in the history
This should fix race conditions with dependencies on the JSON file.
  • Loading branch information
raphaelcoeffic committed Aug 13, 2023
1 parent 760e954 commit ee17c03
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions radio/src/boards/generic_stm32/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,12 @@ set(BOARD_LIB_SRC
)

add_library(minimal_board_lib OBJECT EXCLUDE_FROM_ALL ${MINIMAL_BOARD_LIB_SRC})
add_library(board_lib OBJECT EXCLUDE_FROM_ALL ${BOARD_LIB_SRC})

set(FIRMWARE_SRC ${FIRMWARE_SRC}
add_library(board_lib OBJECT EXCLUDE_FROM_ALL
$<TARGET_OBJECTS:minimal_board_lib>
${BOARD_LIB_SRC})

set(FIRMWARE_SRC ${FIRMWARE_SRC}
$<TARGET_OBJECTS:board_lib>
)

Expand Down

0 comments on commit ee17c03

Please sign in to comment.