diff options
author | Martin Braun <martin.braun@ettus.com> | 2016-08-12 17:00:53 -0700 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2016-08-12 17:00:53 -0700 |
commit | 73bc3051001628967a07339d0e16503e7e767953 (patch) | |
tree | 5bcf8a58840a36ef63c9a8c2848b0f4304afd164 /host | |
parent | 1e529b5439c6c1f2ef98c09186eaa1248c5d0373 (diff) | |
download | uhd-73bc3051001628967a07339d0e16503e7e767953.tar.gz uhd-73bc3051001628967a07339d0e16503e7e767953.tar.bz2 uhd-73bc3051001628967a07339d0e16503e7e767953.zip |
cmake: Auto-generate ABI string and clarify comment on UHD_VERSION macro
Diffstat (limited to 'host')
-rw-r--r-- | host/include/uhd/version.hpp.in | 8 |
1 files changed, 4 insertions, 4 deletions
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{ |