mirror of
https://git.sr.ht/~thestr4ng3r/chiaki
synced 2025-08-21 14:03:11 -07:00
Add option to use system Nanopb (#352)
This commit is contained in:
parent
6e063109af
commit
cbfa49551d
6 changed files with 52 additions and 13 deletions
|
@ -74,7 +74,6 @@ set(SOURCE_FILES
|
|||
src/opusdecoder.c)
|
||||
|
||||
add_subdirectory(protobuf)
|
||||
include_directories("${NANOPB_SOURCE_DIR}")
|
||||
set_source_files_properties(${CHIAKI_LIB_PROTO_SOURCE_FILES} ${CHIAKI_LIB_PROTO_HEADER_FILES} PROPERTIES GENERATED TRUE)
|
||||
include_directories("${CHIAKI_LIB_PROTO_INCLUDE_DIR}")
|
||||
|
||||
|
@ -113,7 +112,7 @@ else()
|
|||
target_link_libraries(chiaki-lib OpenSSL::Crypto)
|
||||
endif()
|
||||
|
||||
target_link_libraries(chiaki-lib protobuf-nanopb-static)
|
||||
target_link_libraries(chiaki-lib Nanopb::nanopb)
|
||||
target_link_libraries(chiaki-lib Jerasure::Jerasure)
|
||||
|
||||
if(CHIAKI_LIB_ENABLE_OPUS)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue