r176080 - Define CMake option CLANG_INCLUDE_TESTS *before* traversing into tests/ subdirectory. Otherwise, while configuring the build tree for the first time, Clang unit tests could avoid being added to 'check-clang' command, and thus avoi

Forwarding to cfe-dev

This is a fixup for r174698. It may be the case that your working/fresh build tree / build bot doesn’t run Clang unit tests when you
run “make check-clang” or “make check-all”. The symptom is the following line in “make check-clang”:

lit.py: discovery.py:169: warning: test suite ‘Clang-Unit’ contained no tests

To fix this you may need to apply this revision and do a clean rebuild.

Author: samsonov
New Revision: 176080

URL: http://llvm.org/viewvc/llvm-project?rev=176080&view=rev
Log:
Define CMake option CLANG_INCLUDE_TESTS before traversing into tests/ subdirectory. Otherwise, while configuring the build tree for the first time, Clang unit tests could avoid being added to ‘check-clang’ command, and thus avoid being built and executed.

Modified:
cfe/trunk/CMakeLists.txt

Modified: cfe/trunk/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/CMakeLists.txt?rev=176080&r1=176079&r2=176080&view=diff