Fix Debug CMake builds on Windows
[WebKit-https.git] / Source / cmake / OptionsWindows.cmake
index 0ad9a67..73b6e7f 100644 (file)
@@ -110,8 +110,14 @@ WEBKIT_OPTION_END()
 include_directories("$ENV{WEBKIT_LIBRARIES}/include")
 if (${MSVC_CXX_ARCHITECTURE_ID} STREQUAL "X86")
     link_directories("$ENV{WEBKIT_LIBRARIES}/lib32")
+    set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib32)
+    set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib32)
+    set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin32)
 else ()
     link_directories("$ENV{WEBKIT_LIBRARIES}/lib64")
+    set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib64)
+    set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib64)
+    set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin64)
 endif ()
 
 if (MSVC)