Add a tag so that we can differentiate staleness tests

PiperOrigin-RevId: 507000114
diff --git a/cmake/build_defs.bzl b/cmake/build_defs.bzl
index 084a34f..157c3cb 100644
--- a/cmake/build_defs.bzl
+++ b/cmake/build_defs.bzl
@@ -25,7 +25,7 @@
 
 """Bazel support functions related to CMake support."""
 
-def staleness_test(name, outs, generated_pattern, target_files = None, **kwargs):
+def staleness_test(name, outs, generated_pattern, target_files = None, tags = [], **kwargs):
     """Tests that checked-in file(s) match the contents of generated file(s).
 
     The resulting test will verify that all output files exist and have the
@@ -72,5 +72,6 @@
         deps = [
             Label("//cmake:staleness_test_lib"),
         ],
+        tags = ["staleness_test"] + tags,
         **kwargs
     )