[CMake] Refactor subdirectory inclusion code to take a project name.
authorChris Bieneman <beanz@apple.com>
Tue, 20 Oct 2015 16:42:58 +0000 (16:42 +0000)
committerChris Bieneman <beanz@apple.com>
Tue, 20 Oct 2015 16:42:58 +0000 (16:42 +0000)
commite5b90ccacc6aa8735dcbc1915d29c2c9db289671
tree71fff8e114b6cc6365fefa66466948ff966616bc
parent7d55a0bab7448cc3f076602b4267ec2c6e741fe9
[CMake] Refactor subdirectory inclusion code to take a project name.

Summary:
This refactoring makes some of the code used to control including subdirectories parameterized so it can be re-used elsewhere.

Specifically I want to re-use this code in clang to be able to turn off specific tool subdirectories.

Reviewers: chapuni, filcab, bogner, Bigcheese

Subscribers: emaste, llvm-commits

Differential Revision: http://reviews.llvm.org/D13783

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