diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index fcf09660..8ca85aff 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -75,7 +75,9 @@ if(BUILD_XMMS2) endif(BUILD_XMMS2) if(BUILD_PORT_MONITORS) - set(port_monitors libtcp-portmon.cc tcp-portmon.cc) + add_library(tcp-portmon libtcp-portmon.cc) + set(conky_libs ${conky_libs} tcp-portmon) + set(port_monitors tcp-portmon.cc) set(optional_sources ${optional_sources} ${port_monitors}) endif(BUILD_PORT_MONITORS)