From 73bc3051001628967a07339d0e16503e7e767953 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Fri, 12 Aug 2016 17:00:53 -0700 Subject: cmake: Auto-generate ABI string and clarify comment on UHD_VERSION macro --- host/include/uhd/version.hpp.in | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'host/include') diff --git a/host/include/uhd/version.hpp.in b/host/include/uhd/version.hpp.in index 905306c65..10f6a97ba 100644 --- a/host/include/uhd/version.hpp.in +++ b/host/include/uhd/version.hpp.in @@ -1,5 +1,5 @@ // -// Copyright 2010-2015 Ettus Research LLC +// Copyright 2010-2016 Ettus Research LLC // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by @@ -27,14 +27,14 @@ * The format is oldest API compatible release - ABI compat number. * The compatibility number allows pre-release ABI to be versioned. */ -#define UHD_VERSION_ABI_STRING "3.10.0" +#define UHD_VERSION_ABI_STRING "@TRIMMED_VERSION_MAJOR@.@TRIMMED_VERSION_API@.@TRIMMED_VERSION_ABI@" /*! * A macro to check UHD version at compile-time. * The value of this macro is MAJOR * 1000000 + API * 10000 + ABI * 100 + PATCH - * (e.g., for UHD 3.8.1 this is 30801). + * (e.g., for UHD 3.10.0.1 this is 3100001). */ -#cmakedefine UHD_VERSION @UHD_VERSION_ADDED@ +#define UHD_VERSION @UHD_VERSION_ADDED@ namespace uhd{ -- cgit v1.2.3