From 94743a6b92857efc09d55c7511e0221c9cdb8460 Mon Sep 17 00:00:00 2001 From: Alec Leamas Date: Thu, 24 Sep 2020 11:21:33 +0200 Subject: [PATCH] cmake: package.xml: Use version in PROJECT() call. --- .gitignore | 3 +++ CMakeLists.txt | 1 + package.xml.in | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 2634447..d024aca 100644 --- a/.gitignore +++ b/.gitignore @@ -32,3 +32,6 @@ doc/html ipch Debug Release + +# Generated from package.xml.in, must live in top dir. +package.xml diff --git a/CMakeLists.txt b/CMakeLists.txt index 2bc9f9f..f69aa1f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -13,6 +13,7 @@ message(STATUS "Building package ${PKG_NAME}") find_package(catkin REQUIRED) set(PROJ_SOVERSION 1) + project(${PKG_NAME} VERSION 1.2.1 DESCRIPTION "Cross-platform, Serial Port library written in C++" diff --git a/package.xml.in b/package.xml.in index 3320e4d..2d56d82 100644 --- a/package.xml.in +++ b/package.xml.in @@ -1,7 +1,7 @@ @PROJECT_NAME@ - 1.2.1 + @PROJECT_VERSION@ Serial is a cross-platform, simple to use library for using serial ports on computers. This library provides a C++, object oriented interface for interacting with RS-232