Skip to content

Commit

Permalink
sdk/CMakeLists: change linking order of third party libraries to avoi…
Browse files Browse the repository at this point in the history
…d further build errors

Signed-off-by: rbudai <[email protected]>
  • Loading branch information
rbudai98 committed Sep 14, 2023
1 parent 964a85a commit 08d887e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions sdk/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,10 @@ add_library(${PROJECT_NAME} SHARED
$<$<BOOL:${WITH_PROTOBUF_DEPENDENCY}>:${USB_HEADERS}>
)

target_link_libraries(${PROJECT_NAME} PRIVATE crc32)
target_link_libraries(${PROJECT_NAME} PRIVATE cjson)
target_link_libraries(${PROJECT_NAME} PRIVATE ccb)

# Add alias to aditof as aditof::aditof
add_library(aditof::aditof ALIAS aditof)

Expand Down Expand Up @@ -212,9 +216,6 @@ else()
target_link_libraries(${PROJECT_NAME} PRIVATE tofi_config)
endif()

target_link_libraries(${PROJECT_NAME} PRIVATE crc32)
target_link_libraries(${PROJECT_NAME} PRIVATE cjson)
target_link_libraries(${PROJECT_NAME} PRIVATE ccb)

if (CMAKE_COMPILER_IS_GNUCC)
target_compile_options(${PROJECT_NAME} PUBLIC
Expand Down

0 comments on commit 08d887e

Please sign in to comment.