[libc++] Explicitly set output directory for DLL
authorShoaib Meenai <smeenai@fb.com>
Thu, 13 Apr 2017 16:27:38 +0000 (16:27 +0000)
committerShoaib Meenai <smeenai@fb.com>
Thu, 13 Apr 2017 16:27:38 +0000 (16:27 +0000)
DLLs on Windows are treated as runtime targets. Explicitly set the
output directory for them, to be consistent with other platforms.

llvm-svn: 300206

libcxx/CMakeLists.txt

index 53904a1..9c16dbe 100644 (file)
@@ -347,6 +347,7 @@ file(MAKE_DIRECTORY "${LIBCXX_BINARY_INCLUDE_DIR}")
 
 set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${LIBCXX_LIBRARY_DIR})
 set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${LIBCXX_LIBRARY_DIR})
+set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${LIBCXX_LIBRARY_DIR})
 
 # Declare libc++ configuration variables.
 # They are intended for use as follows: