From 6fefebd02c18351f5a4b7b19948a49665f3bf30f Mon Sep 17 00:00:00 2001 From: Gwenhael Goavec-Merou Date: Thu, 17 Dec 2020 13:58:30 +0100 Subject: [PATCH] prepare release v0.2.1 --- CMakeLists.txt | 3 ++- src/main.cpp | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b527f24..d15271c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,7 +2,8 @@ cmake_minimum_required(VERSION 3.0) # set the project name -project(openFPGALoader VERSION 0.1 LANGUAGES CXX) +project(openFPGALoader VERSION "0.2.1" LANGUAGES CXX) +add_definitions(-DVERSION=\"v${PROJECT_VERSION}\") option(BUILD_STATIC "Whether or not to build with static libraries" OFF) option(ENABLE_UDEV "use udev to search JTAG adapter from /dev/xx" ON) diff --git a/src/main.cpp b/src/main.cpp index 56fb1b7..2911317 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -386,7 +386,7 @@ int parse_opt(int argc, char **argv, struct arguments *args, jtag_pins_conf_t *p } if (result.count("Version")) { - cout << "openFPGALoader v0.1" << endl; + cout << "openFPGALoader " << VERSION << endl; return 1; }