You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enforce synchronization of version in spec and VERSION.cmake
It enforces synchronization of version of rpm with version available
to cmake to prevents issue when package with version 0.50.0 fails
to build packages that requires pkgconfig(libdnf) >= 0.50.0.
message(FATAL_ERROR "Variable DEFAULT_LIBDNF_MAJOR_VERSION="${DEFAULT_LIBDNF_MAJOR_VERSION}" in VERSION.cmake differs from LIBDNF_MAJOR_VERSION="${LIBDNF_MAJOR_VERSION}" in spec")
7
+
else()
8
+
set (LIBDNF_MAJOR_VERSION ${DEFAULT_LIBDNF_MAJOR_VERSION})
message(FATAL_ERROR "Variable DEFAULT_LIBDNF_MINOR_VERSION="${DEFAULT_LIBDNF_MINOR_VERSION}" in VERSION.cmake differs from LIBDNF_MINOR_VERSION="${LIBDNF_MINOR_VERSION}" in spec")
13
+
else()
14
+
set (LIBDNF_MINOR_VERSION ${DEFAULT_LIBDNF_MINOR_VERSION})
message(FATAL_ERROR "Variable DEFAULT_LIBDNF_MICRO_VERSION="${DEFAULT_LIBDNF_MICRO_VERSION}" in VERSION.cmake differs from LIBDNF_MICRO_VERSION="${LIBDNF_MICRO_VERSION}" in spec")
19
+
else()
20
+
set (LIBDNF_MICRO_VERSION ${DEFAULT_LIBDNF_MICRO_VERSION})
21
+
endif()
4
22
set (LIBDNF_VERSION ${LIBDNF_MAJOR_VERSION}.${LIBDNF_MINOR_VERSION}.${LIBDNF_MICRO_VERSION})
0 commit comments