Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use the version from package.xml to grab VCS version #15

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,13 @@ project(drake CXX)
find_package(ament_cmake REQUIRED)
find_package(ament_cmake_vendor_package REQUIRED)

# Extract the version from package.xml and use it to grab the upstream source
ament_package_xml()
set(PACKAGE_XML_VERSION ${${PROJECT_NAME}_VERSION})

ament_vendor(drake
VCS_URL https://github.com/RobotLocomotion/drake
VCS_VERSION v1.26.0
VCS_VERSION v${PACKAGE_XML_VERSION}
CMAKE_ARGS
# At the moment, closed-source dependencies are disabled.
-DWITH_GUROBI:BOOL=OFF
Expand Down
Loading