mirror of
https://github.com/zeromq/libzmq.git
synced 2025-03-10 07:56:09 +00:00
Both libzmq and libzmq-static are trying to work in precompiled.pch. Solution: enforce order.
Fixes https://github.com/zeromq/libzmq/issues/3776.
This commit is contained in:
parent
fde2a7a65d
commit
9b66fe2fba
@ -1646,3 +1646,12 @@ endif()
|
|||||||
|
|
||||||
# this cannot be moved, as it does not only contain function/macro definitions
|
# this cannot be moved, as it does not only contain function/macro definitions
|
||||||
include(ClangFormat)
|
include(ClangFormat)
|
||||||
|
|
||||||
|
# fixes https://github.com/zeromq/libzmq/issues/3776
|
||||||
|
# The problem is, both libzmq-static libzmq try to use/generate precompiled.pch at the same time
|
||||||
|
# Add a dependency, so they run in order and so they dont get in each others way
|
||||||
|
# TODO still generates warning "build\x64-Debug\ninja : warning : multiple rules generate precompiled.hpp.
|
||||||
|
# builds involving this target will not be correct; continuing anyway [-w dupbuild=warn]"
|
||||||
|
if (MSVC AND ENABLE_PRECOMPILED AND BUILD_SHARED AND BUILD_STATIC)
|
||||||
|
add_dependencies(libzmq-static libzmq)
|
||||||
|
endif()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user