[CMake][VS][XCode] Restruct the output directory layout more comfortable, ${BINARY_DI...
authorNAKAMURA Takumi <geek4civic@gmail.com>
Mon, 30 Dec 2013 06:48:30 +0000 (06:48 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Mon, 30 Dec 2013 06:48:30 +0000 (06:48 +0000)
commit74ae52847d3d58f9122003386c8e7a27b7b6d71b
tree5c54407625f279c1f87f8d172060b5e7423d74dc
parent6db0e39d4025a4e71778cef4a0b60f00195a6e13
[CMake][VS][XCode] Restruct the output directory layout more comfortable, ${BINARY_DIR}/${BUILD_MODE}/(bin|lib)

We have been seeing nasty directory layout with CMake multiconfig, such as,
  bin/Release/clang.exe
  lib/clang/3.x/...
  lib/Release/clang/3.x/.. (duplicated)

Move the layout similar to autoconf's;
  Release/bin/clang.exe
  Release/lib/clang/3.x/...

Checked on Visual Studio 10. Could you guys please confirm my change on XCode(and other multiconfig builders)?

Note: Don't set variables CMAKE_*_OUTPUT_DIRECTORY any more, or a certain builder, for eaxample, msbuild.exe, would be confused.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@198205 91177308-0d34-0410-b5e6-96231b3b80d8
CMakeLists.txt
cmake/modules/AddLLVM.cmake