diff --git a/CMakeLists.txt b/CMakeLists.txt index afbe13b485..a5306fcb9a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -245,9 +245,9 @@ add_subdirectory(tools) 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()