File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ target_link_libraries(${TARGET}
6060 CompileSettingsDebug::CompileSettingsDebug
6161 ${NAMESPACE} Core::${NAMESPACE}Core
6262 ${NAMESPACE} Messaging::${NAMESPACE}Messaging
63- ${SBC_LIBRARIES}
63+ SBC::SBC
6464)
6565
6666set_target_properties (${TARGET}
Original file line number Diff line number Diff line change 2222# SBC_LIBRARIES - The libraries needed to use libsbc
2323
2424find_package (PkgConfig )
25- pkg_check_modules (SBC REQUIRED sbc )
25+ pkg_check_modules (SBC REQUIRED sbc IMPORTED_TARGET )
2626
2727include (FindPackageHandleStandardArgs )
28- find_package_handle_standard_args (sbc DEFAULT_MSG SBC_LIBRARIES SBC_INCLUDE_DIRS)
28+ find_package_handle_standard_args (SBC DEFAULT_MSG SBC_LIBRARIES SBC_INCLUDE_DIRS)
2929
3030mark_as_advanced (SBC_FOUND SBC_LIBRARIES SBC_INCLUDE_DIRS )
3131
32+ if (SBC_FOUND)
33+ add_library (SBC::SBC ALIAS PkgConfig::SBC )
34+ endif ()
You can’t perform that action at this time.
0 commit comments