build CHANGE split project version and library version
To improve versioning process, we want to have version of the project
separated from the library version. While the library version is
supposed to be tightly connected with API/ABI changes, project versions
will move more slowly to show changes in the project concepts.
diff --git a/src/config.h.in b/src/config.h.in
index 0d9284b..be52bdb 100644
--- a/src/config.h.in
+++ b/src/config.h.in
@@ -27,8 +27,9 @@
*/
#define _PACKED @COMPILER_PACKED_ATTR@
-#define LY_VERSION_MAJOR @LIBYANG_MAJOR_VERSION@ /**< libyang major version number */
-#define LY_VERSION_MINOR @LIBYANG_MINOR_VERSION@ /**< libyang minor version number */
-#define LY_VERSION_MICRO @LIBYANG_MICRO_VERSION@ /**< libyang micro version number */
+#define LY_VERSION_MAJOR @LIBYANG_MAJOR_SOVERSION@ /**< libyang major version number */
+#define LY_VERSION_MINOR @LIBYANG_MINOR_SOVERSION@ /**< libyang minor version number */
+#define LY_VERSION_MICRO @LIBYANG_MICRO_SOVERSION@ /**< libyang micro version number */
+#define LY_VERSION "@LIBYANG_SOVERSION_FULL@" /**< libyang version string */
#endif /* LY_CONFIG_H_ */