1
0
mirror of https://github.com/pavel-odintsov/fastnetmon synced 2024-12-04 19:08:22 +01:00

Fix threading library handling

This commit is contained in:
Dmitry Marakasov 2015-06-02 23:27:49 +03:00
parent fbc54a93d6
commit 07c06930f0

@ -91,11 +91,13 @@ target_link_libraries(netflow_plugin ipfix_rfc)
add_library(pcap_plugin STATIC pcap_plugin/pcap_collector.cpp) add_library(pcap_plugin STATIC pcap_plugin/pcap_collector.cpp)
target_link_libraries(pcap_plugin pcap) target_link_libraries(pcap_plugin pcap)
find_package(Threads)
if (ENABLE_PFRING_SUPPORT) if (ENABLE_PFRING_SUPPORT)
add_library(pfring_plugin STATIC pfring_plugin/pfring_collector.cpp) add_library(pfring_plugin STATIC pfring_plugin/pfring_collector.cpp)
target_link_libraries(pfring_plugin ${PFRING_LIBRARIES}) target_link_libraries(pfring_plugin ${PFRING_LIBRARIES})
target_link_libraries(pfring_plugin numa) target_link_libraries(pfring_plugin numa)
target_link_libraries(pfring_plugin pthread) target_link_libraries(pfring_plugin ${CMAKE_THREAD_LIBS_INIT})
endif() endif()
# example plugin # example plugin
@ -169,7 +171,7 @@ endif()
target_link_libraries(fastnetmon ${LOG4CPP_LIBRARY_PATH}) target_link_libraries(fastnetmon ${LOG4CPP_LIBRARY_PATH})
target_link_libraries(fastnetmon pthread) target_link_libraries(fastnetmon ${CMAKE_THREAD_LIBS_INIT})
# Our libs # Our libs
target_link_libraries(fastnetmon patricia) target_link_libraries(fastnetmon patricia)