From 0c12a8b33b7b8cc65d369314e9b7fe3129ad35e8 Mon Sep 17 00:00:00 2001 From: Jose Luis Rivero Date: Thu, 21 Mar 2024 19:21:43 +0100 Subject: [PATCH] Use the version from package.xml to grab VCS version Signed-off-by: Jose Luis Rivero --- CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0ac9230..e40c4d0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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