Skip to content

Commit

Permalink
src/version.h.in: Define project version
Browse files Browse the repository at this point in the history
Make project version string and numbers easily accessible to downstream
projects during buid by defining them in the version header file.

Signed-off-by: David Schweizer <dschweizer@opensourcerouting.org>
  • Loading branch information
davischw authored and michalvasko committed Jun 26, 2024
1 parent 4681136 commit c5996da
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/version.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,9 @@
#define LY_VERSION_MICRO @LIBYANG_MICRO_SOVERSION@ /**< libyang micro version number */
#define LY_VERSION "@LIBYANG_SOVERSION_FULL@" /**< libyang version string */

#define LY_PROJ_VERSION_MAJOR @LIBYANG_MAJOR_VERSION@ /**< project major version number */
#define LY_PROJ_VERSION_MINOR @LIBYANG_MINOR_VERSION@ /**< project minor version number */
#define LY_PROJ_VERSION_MICRO @LIBYANG_MICRO_VERSION@ /**< project micro version number */
#define LY_PROJ_VERSION "@LIBYANG_VERSION@" /**< project version string */

#endif /* LY_VERSION_H_ */

0 comments on commit c5996da

Please sign in to comment.