cmake: cxx-generate-packed-data: Link against protobuf::libprotobuf

Apparently ${PROTOBUF_LIBRARY} is empty?
This commit is contained in:
Robert Edmonds 2024-04-22 02:34:32 -04:00
parent 035e780f6a
commit 86a89d1e75

View File

@ -217,7 +217,7 @@ GENERATE_TEST_SOURCES(${TEST_DIR}/test-full.proto t/test-full.pb-c.c t/test-full
ADD_EXECUTABLE(cxx-generate-packed-data ${TEST_DIR}/generated-code2/cxx-generate-packed-data.cc t/test-full.pb.h t/test-full.pb.cc protobuf-c/protobuf-c.pb.cc protobuf-c/protobuf-c.pb.h)
TARGET_LINK_LIBRARIES(cxx-generate-packed-data
${PROTOBUF_LIBRARY}
protobuf::libprotobuf
${protobuf_ABSL_USED_TARGETS}
${protobuf_UTF8_USED_TARGETS}
)