Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[cmake] Add support for BYO Python (RobotLocomotion#19023)
Breaking changes: - Drop support for multi-config generators aka CMAKE_CONFIGURATION_TYPES. Specifically, the Eclipse or XCode IDE generators are no longer supported. Other fixes: - Bump minimum CMake to 3.16 (per Ubuntu 20.04 Focal). - Do not use -Werror in CMake builds; only first-party Bazel builds from source should do that (i.e., Drake Developers & Drake CI). - When the requested CMAKE_BUILD_TYPE is unsupported, force it to "Release". - CMake verbosity enables --announce_rc as well. - Clarify which rcfiles are loaded in CMake builds. - Stop using chained imports; only the top-level file contains imports. - Move C++17 flags to focal-specific config file. - Drop Numpy from CMake python searching; we don't use it anymore. Non-functional changes: - Emit a WORKSPACE file and use --package_path in rcfile, to make it easier to customize the workspace and debug bazel commands manually. - Put the rcfile in the conventional place, so we don't need extra args to tell Bazel where it is. - Pass environment variables via rcfile for clarity and reproducibility. - Rename BAZEL_TARGETS to BAZEL_INSTALL_TARGET; it's impossible for this to ever have more than one item in the list. - Rename BAZEL_TARGETS_ARGS to BAZEL_INSTALL_ARGS; it's impossible for this to ever be something other than an install command.
- Loading branch information