Skip to content

Commit 7154bb0

Browse files
committed
Fix Protobuf library variable name in CMake configuration
1 parent be8052c commit 7154bb0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

CMakeLists.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,13 @@ find_package(Protobuf REQUIRED)
88
find_package(Python3 COMPONENTS Interpreter REQUIRED)
99

1010
message(STATUS "Using protobuf ${Protobuf_VERSION}")
11+
message(STATUS "Protobuf libraries: ${Protobuf_LIBRARIES}")
1112

1213
# We need to link abseil if protobuf version is 6.x or higher
1314
if(Protobuf_VERSION VERSION_GREATER_EQUAL "6.0.0")
1415
message(STATUS "Protobuf version is ${Protobuf_VERSION}, linking abseil")
1516
find_package(absl REQUIRED)
16-
set(PROTOBUF_LIBRARIES ${PROTOBUF_LIBRARIES} absl::log absl::strings absl::base absl::status absl::log_internal_check_op absl::log_internal_message)
17+
set(Protobuf_LIBRARIES ${Protobuf_LIBRARIES} absl::log absl::strings absl::base absl::status absl::log_internal_check_op absl::log_internal_message)
1718
endif()
1819

1920
file(GLOB ProtoFiles "protobuf_definitions/*.proto")
@@ -28,7 +29,7 @@ protobuf_generate_python(PROTO_PY ${ProtoFiles})
2829
add_library(blueyeprotocol SHARED ${ProtoSources} ${ProtoHeaders})
2930

3031
set(EXT_LIBS
31-
${PROTOBUF_LIBRARIES}
32+
${Protobuf_LIBRARIES}
3233
)
3334

3435
target_link_libraries(blueyeprotocol PUBLIC ${EXT_LIBS})

0 commit comments

Comments
 (0)