diff --git a/llvm/lib/CMakeLists.txt b/llvm/lib/CMakeLists.txt index 17313df0ecf6..5a41d65b0cf3 100644 --- a/llvm/lib/CMakeLists.txt +++ b/llvm/lib/CMakeLists.txt @@ -28,5 +28,7 @@ add_subdirectory(Passes) add_subdirectory(TextAPI) add_subdirectory(ToolDrivers) add_subdirectory(XRay) -add_subdirectory(Testing) +if (LLVM_INCLUDE_TESTS) + add_subdirectory(Testing) +endif() add_subdirectory(WindowsManifest)