Skip to content

Commit

Permalink
build: fix mingw-w64 compilation
Browse files Browse the repository at this point in the history
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*)
        ;;
```
  • Loading branch information
fanquake committed Mar 27, 2024
1 parent 2a75ef0 commit 8c6a3b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Expand Up @@ -313,9 +313,9 @@ set(POLLER
kqueue, epoll, devpoll, pollset, poll or select [default=autodetect]")

if(WIN32)
set(ZMQ_HAVE_IPC OFF)
if(CMAKE_SYSTEM_NAME STREQUAL "WindowsStore" AND CMAKE_SYSTEM_VERSION MATCHES "^10.0")
set(ZMQ_HAVE_WINDOWS_UWP ON)
set(ZMQ_HAVE_IPC OFF)
# to remove compile warninging "D9002 ignoring unknown option"
string(REPLACE "/Zi" "" CMAKE_CXX_FLAGS_DEBUG ${CMAKE_CXX_FLAGS_DEBUG})
set(CMAKE_CXX_FLAGS_DEBUG
Expand Down

0 comments on commit 8c6a3b4

Please sign in to comment.