Skip to content

Commit

Permalink
[cmake] Move cmake_util to a better home and filename (#18026)
Browse files Browse the repository at this point in the history
  • Loading branch information
jwnimmer-tri authored Oct 3, 2022
1 parent 0d4979d commit c268016
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 7 deletions.
11 changes: 7 additions & 4 deletions BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -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,
),
)
File renamed without changes.
2 changes: 1 addition & 1 deletion cmake/external/workspace/eigen/BUILD.bazel.in
Original file line number Diff line number Diff line change
@@ -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(
"$<TARGET_PROPERTY:Eigen3::Eigen,INTERFACE_COMPILE_DEFINITIONS>",
Expand Down
2 changes: 1 addition & 1 deletion cmake/external/workspace/fmt/BUILD.bazel.in
Original file line number Diff line number Diff line change
Expand Up @@ -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",
)
Expand Down
2 changes: 1 addition & 1 deletion cmake/external/workspace/spdlog/BUILD.bazel.in
Original file line number Diff line number Diff line change
Expand Up @@ -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",
)
Expand Down

0 comments on commit c268016

Please sign in to comment.