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

Added logic to print protoc path as it found it but it's clearly wrong

This commit is contained in:
Pavel Odintsov 2023-04-04 12:35:24 +01:00
parent 6c14813762
commit a187e201e8

View File

@ -541,6 +541,8 @@ if (ENABLE_GOBGP_SUPPORT)
# Assign path to protoc
set(PROTOC_BINARY ${Protobuf_PROTOC_EXECUTABLE})
message(STATUS "Found Protobuf compiler: ${Protobuf_PROTOC_EXECUTABLE}")
# We need to explicitly provide paths for our dependency libraries in environment variable LD_LIBRARY_PATH as we use non system path for them
# CentOS uses lib64 but Debian / Ubuntu still use lib for Protobuf, that's why we keep both of them
set(ENV{LD_LIBRARY_PATH} "${GCC_INSTALL_PATH}/lib64:${PROTOCOL_BUFFERS_CUSTOM_INSTALL_PATH}/lib:${PROTOCOL_BUFFERS_CUSTOM_INSTALL_PATH}/lib64:${GRPC_CUSTOM_INSTALL_PATH}/lib")