1
0
Fork 0
mirror of https://github.com/pavel-odintsov/fastnetmon synced 2024-06-08 16:46:06 +02:00

Added missing link dependency for attribute_pb_cc on Windows

This commit is contained in:
Pavel Odintsov 2023-04-03 23:01:43 +01:00
parent cf26b79d16
commit 5d998a43d5

View File

@ -614,6 +614,12 @@ if (ENABLE_GOBGP_SUPPORT)
# Add attributes
add_library(attribute_pb_cc STATIC actions/attribute.pb.cc)
# It does not work without on Windows but works fine on *nix
if (${CMAKE_SYSTEM_NAME} STREQUAL "Windows")
target_link_libraries(attribute_pb_cc protobuf::libprotobuf)
else()
target_link_libraries(gobgp_action attribute_pb_cc)
# FastNetMon API