mirror of
https://github.com/zeromq/libzmq.git
synced 2025-02-19 13:59:37 +01:00
Fix static library name overlap under MSVC
The static library was given the same OUTPUT_NAME as the dynamic library. This leads to one library's build products overwriting the other. The fix sets the name "libzmq-static" for the static library.
This commit is contained in:
parent
f080815487
commit
27a3f2aa92
@ -501,7 +501,7 @@ if(MSVC)
|
||||
RELEASE_POSTFIX "${_zmq_COMPILER}-mt-s-${ZMQ_VERSION_MAJOR}_${ZMQ_VERSION_MINOR}_${ZMQ_VERSION_PATCH}"
|
||||
DEBUG_POSTFIX "${_zmq_COMPILER}-mt-sgd-${ZMQ_VERSION_MAJOR}_${ZMQ_VERSION_MINOR}_${ZMQ_VERSION_PATCH}"
|
||||
COMPILE_FLAGS "/D ZMQ_STATIC"
|
||||
OUTPUT_NAME "libzmq")
|
||||
OUTPUT_NAME "libzmq-static")
|
||||
else()
|
||||
add_library(libzmq SHARED ${sources} ${public_headers} ${html-docs} ${readme-docs} ${zmq-pkgconfig})
|
||||
if(ZMQ_BUILD_FRAMEWORK)
|
||||
|
Loading…
x
Reference in New Issue
Block a user