From f1aeb7956c59e1fb08619c3883b96386f9e4dd0b Mon Sep 17 00:00:00 2001 From: Andras Lasso Date: Sat, 30 Jun 2018 06:27:08 +0100 Subject: [PATCH] cmake: Fix .dll file location in the build tree This commit ensures that the variable CMAKE_*_OUTPUT_DIRECTORY are considered when creating the library. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ce43692d..6e8ada73 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1012,7 +1012,7 @@ if (MSVC) RELWITHDEBINFO_POSTFIX "${MSVC_TOOLSET}-mt-${ZMQ_VERSION_MAJOR}_${ZMQ_VERSION_MINOR}_${ZMQ_VERSION_PATCH}" MINSIZEREL_POSTFIX "${MSVC_TOOLSET}-mt-${ZMQ_VERSION_MAJOR}_${ZMQ_VERSION_MINOR}_${ZMQ_VERSION_PATCH}" DEBUG_POSTFIX "${MSVC_TOOLSET}-mt-gd-${ZMQ_VERSION_MAJOR}_${ZMQ_VERSION_MINOR}_${ZMQ_VERSION_PATCH}" - RUNTIME_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/bin" + RUNTIME_OUTPUT_DIRECTORY "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}" COMPILE_DEFINITIONS "DLL_EXPORT" OUTPUT_NAME "libzmq") endif()