mirror of
https://github.com/pavel-odintsov/fastnetmon
synced 2024-12-03 17:38:25 +01:00
Fix threading library handling
This commit is contained in:
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)
|
||||
target_link_libraries(pcap_plugin pcap)
|
||||
|
||||
find_package(Threads)
|
||||
|
||||
if (ENABLE_PFRING_SUPPORT)
|
||||
add_library(pfring_plugin STATIC pfring_plugin/pfring_collector.cpp)
|
||||
target_link_libraries(pfring_plugin ${PFRING_LIBRARIES})
|
||||
target_link_libraries(pfring_plugin numa)
|
||||
target_link_libraries(pfring_plugin pthread)
|
||||
target_link_libraries(pfring_plugin ${CMAKE_THREAD_LIBS_INIT})
|
||||
endif()
|
||||
|
||||
# example plugin
|
||||
@ -169,7 +171,7 @@ endif()
|
||||
|
||||
target_link_libraries(fastnetmon ${LOG4CPP_LIBRARY_PATH})
|
||||
|
||||
target_link_libraries(fastnetmon pthread)
|
||||
target_link_libraries(fastnetmon ${CMAKE_THREAD_LIBS_INIT})
|
||||
|
||||
# Our libs
|
||||
target_link_libraries(fastnetmon patricia)
|
||||
|
Loading…
Reference in New Issue
Block a user