From 86a89d1e758557e5df60cf47ed98df837ed93428 Mon Sep 17 00:00:00 2001 From: Robert Edmonds Date: Mon, 22 Apr 2024 02:34:32 -0400 Subject: [PATCH] cmake: cxx-generate-packed-data: Link against protobuf::libprotobuf Apparently ${PROTOBUF_LIBRARY} is empty? --- build-cmake/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build-cmake/CMakeLists.txt b/build-cmake/CMakeLists.txt index 464c1e1..6663d44 100644 --- a/build-cmake/CMakeLists.txt +++ b/build-cmake/CMakeLists.txt @@ -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} )