diff --git a/mlir/test/CMakeLists.txt b/mlir/test/CMakeLists.txt index f181a91328f3f..58d16a657297e 100644 --- a/mlir/test/CMakeLists.txt +++ b/mlir/test/CMakeLists.txt @@ -99,7 +99,6 @@ configure_lit_site_cfg( ) set(MLIR_TEST_DEPENDS - FileCheck count not split-file mlir-capi-ir-test mlir-capi-irdl-test mlir-capi-llvm-test @@ -121,6 +120,9 @@ set(MLIR_TEST_DEPENDS tblgen-lsp-server tblgen-to-irdl ) +if(NOT MLIR_STANDALONE_BUILD) + list(APPEND MLIR_TEST_DEPENDS FileCheck count not split-file) +endif() set(MLIR_TEST_DEPENDS ${MLIR_TEST_DEPENDS} mlir-capi-pdl-test