diff --git a/CMakeLists.txt b/CMakeLists.txt index 08f786f41..7d2795958 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -63,7 +63,11 @@ if(MSVC OR MSVC90 OR MSVC10) set(MSVC ON) endif (MSVC OR MSVC90 OR MSVC10) -set(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR}/lib) +if(WIN32) + set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin) +else() + set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib) +endif() set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/CMakeModules") include(CMakePackageConfigHelpers) include(GenerateExportHeader)