Added more details about deetected libraries

This commit is contained in:
Pavel Odintsov 2020-10-30 00:34:53 +00:00
parent c53fd707bf
commit 045e3a29fd

@ -317,9 +317,9 @@ if (ENABLE_GOBGP_SUPPORT)
include_directories(${GRPC_INCLUDES_FOLDER})
target_link_libraries(gobgp_action ${GRPC_LIBRARY_GRPC_PATH})
target_link_libraries(gobgp_action ${GRPC_LIBRARY_GPR_PATH})
target_link_libraries(gobgp_action ${GRPC_LIBRARY_GRPC_CPP__PATH})
target_link_libraries(gobgp_action ${GRPC_LIBRARY_GRPC_CPP_PATH})
message(STATUS "Found gRPC library")
message(STATUS "Found gRPC library: ${GRPC_LIBRARY_GRPC_PATH} ${GRPC_LIBRARY_GPR_PATH} ${GRPC_LIBRARY_GRPC_CPP_PATH}")
else()
message(FATAL_ERROR "Could not find gRPC library")
endif()
@ -331,7 +331,7 @@ if (ENABLE_GOBGP_SUPPORT)
if (PROTOCOL_BUFFERS_INCLUDE_FOLDER AND PROTOCOL_BUFFERS_LIBRARY_PATH)
include_directories(${PROTOCOL_BUFFERS_INCLUDE_FOLDER})
target_link_libraries(gobgp_action ${PROTOCOL_BUFFERS_LIBRARY_PATH})
message(STATUS "Found protobuf library")
message(STATUS "Found protobuf library: ${PROTOCOL_BUFFERS_LIBRARY_PATH}")
else()
message(FATAL_ERROR "Could not find protocol buffers")
endif()
@ -472,7 +472,7 @@ find_path(HIREDIS_INCLUDES_FOLDER NAMES hiredis/hiredis.h PATHS "${HIREDIS_CUSTO
find_library(HIREDIS_LIBRARY_PATH NAMES hiredis PATHS "${HIREDIS_CUSTOM_INSTALL_PATH}/lib" NO_DEFAULT_PATH)
if (HIREDIS_INCLUDES_FOLDER AND HIREDIS_LIBRARY_PATH)
message(STATUS "We found hiredis library and will build Redis support ${HIREDIS_INCLUDES_FOLDER} ${HIREDIS_LIBRARY_PATH}")
message(STATUS "We found hiredis library ${HIREDIS_INCLUDES_FOLDER} ${HIREDIS_LIBRARY_PATH}")
add_definitions(-DREDIS)
include_directories(${HIREDIS_INCLUDES_FOLDER})
@ -488,6 +488,7 @@ if (ENABLE_OPENSSL_SUPPORT)
find_library(OPENSSL_CRYPTO_LIBRARY_PATH NAMES crypto PATHS "${OPENSSL_CUSTOM_INSTALL_PATH}/lib" NO_DEFAULT_PATH)
if (OPENSSL_INCLUDES_FOLDER AND OPENSSL_LIBRARY_PATH AND OPENSSL_CRYPTO_LIBRARY_PATH)
message(STATUS "We found OpenSSL library: ${OPENSSL_LIBRARY_PATH} ${OPENSSL_CRYPTO_LIBRARY_PATH}")
include_directories(${OPENSSL_INCLUDES_FOLDER})
else()
message(FATAL_ERROR "Could not find OpenSSL library")
@ -559,7 +560,7 @@ find_library(LOG4CPP_LIBRARY_PATH NAMES log4cpp PATHS "${LOG4CPP_CUSTOM_INSTALL_
if (LOG4CPP_INCLUDES_FOLDER AND LOG4CPP_LIBRARY_PATH)
include_directories(${LOG4CPP_INCLUDES_FOLDER})
message(STATUS "We have found log4cpp and will build project")
message(STATUS "We have found log4cpp: ${LOG4CPP_LIBRARY_PATH}")
else()
message(FATAL_ERROR "We can't find log4cpp. We can't build project")
endif()