From 6b2d417ae41c2e09db09ad0f99d20825fbb5b73e Mon Sep 17 00:00:00 2001 From: Sam Edwards Date: Thu, 16 Aug 2018 13:42:34 -0600 Subject: [PATCH] CMake: Put Windows DLLs in 'bin', not 'lib' --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 52f286ebfe..ef5f6fd952 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -38,6 +38,9 @@ set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${PROJECT_BINARY_DIR}/lib") set(CMAKE_SHARED_MODULE_PREFIX "lib") if(WIN32) set(CMAKE_DEBUG_POSTFIX "_d") + + # On Windows, modules (DLLs) are located in bin; lib is just for .lib files + set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${PROJECT_BINARY_DIR}/bin") endif() # Set warning levels