From 5189898479fddc41ab56180047c6c12e64b94b4e Mon Sep 17 00:00:00 2001 From: Gunther Laure Date: Tue, 12 Dec 2017 10:25:19 +0100 Subject: [PATCH] export ZMQ_STATIC compile flag to depending projects (MSVC) Signed-off-by: Gunther Laure --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9b39a6d6..d2535b17 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -772,6 +772,11 @@ if (MSVC) DEBUG_POSTFIX "${MSVC_TOOLSET}-mt-sgd-${ZMQ_VERSION_MAJOR}_${ZMQ_VERSION_MINOR}_${ZMQ_VERSION_PATCH}" COMPILE_FLAGS "/DZMQ_STATIC" OUTPUT_NAME "libzmq") + + target_compile_definitions(libzmq-static + PUBLIC ZMQ_STATIC + ) + endif() else () # avoid building everything twice for shared + static