diff --git a/CMakeLists.txt b/CMakeLists.txt index 08b5a151..8eb3411f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -362,9 +362,11 @@ else() check_cxx_symbol_exists(LOCAL_PEERCRED sys/socket.h ZMQ_HAVE_LOCAL_PEERCRED) endif() -find_library(RT_LIBRARY rt) -if(RT_LIBRARY) - set(pkg_config_libs_private "${pkg_config_libs_private} -lrt") +if(NOT MINGW) + find_library(RT_LIBRARY rt) + if(RT_LIBRARY) + set(pkg_config_libs_private "${pkg_config_libs_private} -lrt") + endif() endif() find_package(Threads)