LLVM_INCLUDE_TESTS applies to unit tests, not the normal Clang tests
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@126458 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/CMakeLists.txt b/CMakeLists.txt
index afbe13b..a5306fc 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -245,9 +245,9 @@
add_subdirectory(runtime)
# TODO: docs.
-if( LLVM_INCLUDE_TESTS )
- add_subdirectory(test)
+add_subdirectory(test)
+if( LLVM_INCLUDE_TESTS )
if( NOT CLANG_BUILT_STANDALONE )
add_subdirectory(unittests)
endif()