Skip to content

Commit 8c6a3b4

Browse files
committed
build: fix mingw-w64 compilation
Set `ZMQ_HAVE_IPC OFF` all Windows builds, rather than just `WindowsStore` builds. This fixes compiling with mingw-w64, and mirrors the autotools builds system: ```bash case "${host_os}" in *vxworks*|*openvms*|*mingw*) ;; ```
1 parent 2a75ef0 commit 8c6a3b4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,9 +313,9 @@ set(POLLER
313313
kqueue, epoll, devpoll, pollset, poll or select [default=autodetect]")
314314

315315
if(WIN32)
316+
set(ZMQ_HAVE_IPC OFF)
316317
if(CMAKE_SYSTEM_NAME STREQUAL "WindowsStore" AND CMAKE_SYSTEM_VERSION MATCHES "^10.0")
317318
set(ZMQ_HAVE_WINDOWS_UWP ON)
318-
set(ZMQ_HAVE_IPC OFF)
319319
# to remove compile warninging "D9002 ignoring unknown option"
320320
string(REPLACE "/Zi" "" CMAKE_CXX_FLAGS_DEBUG ${CMAKE_CXX_FLAGS_DEBUG})
321321
set(CMAKE_CXX_FLAGS_DEBUG

0 commit comments

Comments
 (0)