Skip to content

Commit

Permalink
Fix CMake-generated libzmq.pc file
Browse files Browse the repository at this point in the history
This change mirrors the Autotools-based build system behavior for
cross-compiling for Windows with static linking.
  • Loading branch information
hebasto committed Jul 17, 2024
1 parent ee29bcd commit 2a1d6a6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -585,7 +585,9 @@ else()
check_cxx_symbol_exists(SO_BUSY_POLL sys/socket.h ZMQ_HAVE_BUSY_POLL)
endif()

if(NOT MINGW)
if(MINGW)
set(pkg_config_libs_private "${pkg_config_libs_private} -liphlpapi -lws2_32")
else()
find_library(RT_LIBRARY rt)
if(RT_LIBRARY)
set(pkg_config_libs_private "${pkg_config_libs_private} -lrt")
Expand Down

0 comments on commit 2a1d6a6

Please sign in to comment.