From 81a4487e20351e883b16a2a4f1128405221c3324 Mon Sep 17 00:00:00 2001 From: rafi Date: Fri, 11 Jul 2014 20:44:49 +0200 Subject: [PATCH] cmake: Set an output directory for Windows DLLs --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index c222b7c95..4654e9e50 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -26,6 +26,8 @@ set(PROJECT_VERSION ${COMPLETE_VERSION}) # tree rather than installed Boost libraries. set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib) set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib) +# Windows DLLs are "runtime" for CMake. Output them to "bin" like the Visual Studio projects do. +set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin) # Append our module directory to CMake set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake)