diff --git a/BUILD.bazel b/BUILD.bazel index ba57bef660e5..7456addf4c79 100644 --- a/BUILD.bazel +++ b/BUILD.bazel @@ -89,8 +89,11 @@ install_test( ) add_lint_tests( - bazel_lint_extra_srcs = [ - "cmake/external/workspace/spdlog/BUILD.bazel.in", - "cmake/external/workspace/fmt/BUILD.bazel.in", - ], + bazel_lint_extra_srcs = glob( + [ + "cmake/external/workspace/**/*.bazel.in", + "cmake/external/workspace/**/*.bzl", + ], + allow_empty = False, + ), ) diff --git a/tools/workspace/cmake_util.bzl b/cmake/external/workspace/conversion.bzl similarity index 100% rename from tools/workspace/cmake_util.bzl rename to cmake/external/workspace/conversion.bzl diff --git a/cmake/external/workspace/eigen/BUILD.bazel.in b/cmake/external/workspace/eigen/BUILD.bazel.in index 287a601a2073..77b231e71c29 100644 --- a/cmake/external/workspace/eigen/BUILD.bazel.in +++ b/cmake/external/workspace/eigen/BUILD.bazel.in @@ -1,7 +1,7 @@ # -*- python -*- load("@drake//tools/install:install.bzl", "install") -load("@drake//tools/workspace:cmake_util.bzl", "split_cmake_list") +load("@drake//:cmake/external/workspace/conversion.bzl", "split_cmake_list") EIGEN_DEFINES = split_cmake_list( "$", diff --git a/cmake/external/workspace/fmt/BUILD.bazel.in b/cmake/external/workspace/fmt/BUILD.bazel.in index ba4d9a45d9ac..ad0ab03cae45 100644 --- a/cmake/external/workspace/fmt/BUILD.bazel.in +++ b/cmake/external/workspace/fmt/BUILD.bazel.in @@ -2,7 +2,7 @@ load("@drake//tools/install:install.bzl", "install") load( - "@drake//tools/workspace:cmake_util.bzl", + "@drake//:cmake/external/workspace/conversion.bzl", "library_to_linkopts", "split_cmake_list", ) diff --git a/cmake/external/workspace/spdlog/BUILD.bazel.in b/cmake/external/workspace/spdlog/BUILD.bazel.in index 6a04aff105a8..9ea053871eb0 100644 --- a/cmake/external/workspace/spdlog/BUILD.bazel.in +++ b/cmake/external/workspace/spdlog/BUILD.bazel.in @@ -2,7 +2,7 @@ load("@drake//tools/install:install.bzl", "install") load( - "@drake//tools/workspace:cmake_util.bzl", + "@drake//:cmake/external/workspace/conversion.bzl", "library_to_linkopts", "split_cmake_list", )