Made library bundle builder more strict. Mongoc is mandatory dependency since now

This commit is contained in:
Pavel Odintsov 2020-10-25 18:28:02 +00:00
parent eeaec2635c
commit 9c1475c1ec
2 changed files with 9 additions and 5 deletions

@ -533,7 +533,7 @@ if (MONGOC_INCLUDES_FOLDER AND MONGOC_LIBRARY_PATH AND BSON_INCLUDES_FOLDER AND
target_link_libraries(fastnetmon ${MONGOC_LIBRARY_PATH} ${BSON_LIBRARY_PATH})
else()
message(WARNING "We can't find Mongo C library")
message(FATAL_ERROR "We can't find Mongo C library")
endif()
### Look for libpcap

@ -44,18 +44,22 @@ pf_ring_6.0.3
gobgp_2_16_0
grpc_1_27_3_e73882dc0fcedab1ffe789e44ed6254819639ce3
libhiredis_0_13
mongo_c_driver_1_1_9
mongo_c_driver_1_16_1
protobuf_3.11.4
gcc920
gcc930
);
for my $library (@our_libraries) {
my $library_path = "$global_path/$library";
# Some libraries are optional
unless (-e $library_path) {
warn "Can't find library $library please check\n";
next;
if ($library eq 'pf_ring_6.0.3') {
next;
} else {
die "Some required libraries are missing\n";
}
}
print "Library: $library\n";