[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)
commitbaa9f533fe242c657b8ce2949882e23813d7148b
tree11f61d6f17f781d9f3b49618b889645d1540a79a
parent4c141c3ef8b6ee99ce33542124afa23e6d9efb3c
[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.
llvm-svn: 198205
clang/CMakeLists.txt
clang/lib/Headers/CMakeLists.txt
llvm/CMakeLists.txt
llvm/cmake/modules/AddLLVM.cmake