Skip to content
This repository has been archived by the owner on Dec 10, 2024. It is now read-only.

Commit

Permalink
Use the version from package.xml to grab VCS version
Browse files Browse the repository at this point in the history
Signed-off-by: Jose Luis Rivero <[email protected]>
  • Loading branch information
j-rivero committed Mar 21, 2024
1 parent 9fb0016 commit 0c12a8b
Showing 1 changed file with 5 additions and 1 deletion.
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

0 comments on commit 0c12a8b

Please sign in to comment.