Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions c/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ set(libsbp_SRCS
swift_add_library(sbp
SOURCES ${libsbp_SRCS}
)
add_library(swiftnav::sbp ALIAS sbp)
Copy link
Contributor

@martin4861 martin4861 Nov 14, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The alias name is already used internally for the tests.

I dug deeper into the definition of swift_add_library, which creates sbp and turned out, that it already does add_library(${SWIFTNAV_ALIAS}::${target} ALIAS ${target}) in the cmake common lib.
Therefore I would rather not add this line, but I would be fine, if you added a comment, stating, that the alias is already set using swift_add_library.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh I totally missed that! As long as that target is there then I'm happy!


if(I_KNOW_WHAT_I_AM_DOING_AND_HOW_DANGEROUS_IT_IS__LIBSBP_DISABLE_CRC_VALIDATION)
target_compile_definitions(sbp PRIVATE LIBSBP_DISABLE_CRC_VALIDATION)
Expand Down
Loading