File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -91,11 +91,13 @@ target_link_libraries(netflow_plugin ipfix_rfc)
9191add_library (pcap_plugin STATIC pcap_plugin/pcap_collector.cpp)
9292target_link_libraries (pcap_plugin pcap)
9393
94+ find_package (Threads)
95+
9496if (ENABLE_PFRING_SUPPORT)
9597 add_library (pfring_plugin STATIC pfring_plugin/pfring_collector.cpp)
9698 target_link_libraries (pfring_plugin ${PFRING_LIBRARIES} )
9799 target_link_libraries (pfring_plugin numa)
98- target_link_libraries (pfring_plugin pthread )
100+ target_link_libraries (pfring_plugin ${CMAKE_THREAD_LIBS_INIT} )
99101endif ()
100102
101103# example plugin
@@ -169,7 +171,7 @@ endif()
169171
170172target_link_libraries (fastnetmon ${LOG4CPP_LIBRARY_PATH} )
171173
172- target_link_libraries (fastnetmon pthread )
174+ target_link_libraries (fastnetmon ${CMAKE_THREAD_LIBS_INIT} )
173175
174176# Our libs
175177target_link_libraries (fastnetmon patricia)
You can’t perform that action at this time.
0 commit comments