CMake builds that include libsbp must link against a different target than those that link against an externally-built libsbp.
Description
In-tree consumers must link against sbp.
|
swift_add_library(sbp |
|
SOURCES ${libsbp_SRCS} |
|
) |
Out-of-tree consumers must link against swiftnav::sbp.
|
install( |
|
EXPORT sbp-export |
|
DESTINATION ${CMAKE_INSTALL_DATADIR}/libsbp/cmake |
|
NAMESPACE swiftnav:: |
|
) |
Proposed Solution
Add a library target swiftnav::sbp as an alias for the sbp target.