Skip to content

Commit

Permalink
[drake_bazel_external] Set public_repo_default=pkgconfig (#352)
Browse files Browse the repository at this point in the history
  • Loading branch information
jwnimmer-tri authored Jan 16, 2025
1 parent 431d6d2 commit b8e2687
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 5 additions & 0 deletions drake_bazel_external/.bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ build --host_cxxopt=-std=c++20
# https://github.com/bazelbuild/bazel/issues/1164
build --action_env=CCACHE_DISABLE=1

# Use eigen, fmt, spdlog from the host OS via pkg-config, rather than bzlmod.
# It's okay to remove this line if you'd rather use bzlmod. For details, see:
# https://github.com/RobotLocomotion/drake/blob/master/tools/flags/BUILD.bazel
build --@drake//tools/flags:public_repo_default=pkgconfig

# For Ubuntu builds, this flag can cut build times in half. For macOS builds,
# this flag might cause build errors. We suggest turning it on if and only if
# your project doesn't use macOS.
Expand Down
5 changes: 1 addition & 4 deletions drake_bazel_external/README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
# Bazel Project with Drake as an External

This pulls in Drake and builds it from source via Bazel's WORKSPACE mechanism,
which is deprecated as of Bazel 8 and will be removed in Bazel 9. Therefore,
we will be rewriting this example to use Bazel modules ("bzlmod") in the near
future. Stay tuned!
This pulls in Drake and builds it from source via Bazel's module mechanism.

For an introduction to Bazel, refer to
[Getting Started with Bazel](https://bazel.build/start).
Expand Down

0 comments on commit b8e2687

Please sign in to comment.