CMake options for solver opt-out #22547
Labels
component: build system
Bazel, CMake, dependencies, memory checkers, linters
priority: medium
type: feature request
Is your feature request related to a problem? Please describe.
#22393 added flags for downstream Bazel users to opt-out of our open-source solvers (e.g., Clarabel). However, the need to opt-out applies equally well to downstream CMake users who are building and installing Drake from source.
Describe the solution you'd like
Offer CMake options to opt-out of the same solvers as the Bazel flags. (This should be as simple as tweaking CMake's generated bazelrc file to set the bazel flag when needed.
The options for open-source solvers should have the same truth sense as our options for commercial solvers, just with the opposite default, i.e.,
Update the documentation at https://drake.mit.edu/from_source.html to explain the new options.
Update
drake-external-examples/
(edit:drake_cmake_installed
drake_cmake_external
) to set one of the new options, as a way of documenting it & testing that they work.Describe alternatives you've considered
Users could make a magical
user.bazelrc
file to set the Bazel flag during a CMake build, but that's very awkward.Additional context
N/A
The text was updated successfully, but these errors were encountered: