mirror of
https://gitlab.gnome.org/GNOME/libxml2
synced 2025-03-28 21:33:13 +00:00
CMakeLists.txt: Fix LIBXML_VERSION_NUMBER
Also fix LIBXML_VERSION and remove LIBXML_VERSION_STRING. Fixes #365.
This commit is contained in:
parent
c9f6fef20d
commit
6664f80797
@ -105,10 +105,13 @@ foreach(VARIABLE IN ITEMS WITH_AUTOMATA WITH_C14N WITH_CATALOG WITH_DEBUG WITH_D
|
||||
endif()
|
||||
endforeach()
|
||||
|
||||
set(LIBXML_VERSION ${LIBXML_MAJOR_VERSION}0${LIBXML_MINOR_VERSION}0${LIBXML_MICRO_VERSION})
|
||||
set(LIBXML_VERSION_STRING "${LIBXML_VERSION}")
|
||||
set(LIBXML_VERSION ${VERSION})
|
||||
set(LIBXML_VERSION_EXTRA "")
|
||||
set(LIBXML_VERSION_NUMBER ${LIBXML_VERSION})
|
||||
math(EXPR LIBXML_VERSION_NUMBER "
|
||||
${LIBXML_MAJOR_VERSION} * 10000 +
|
||||
${LIBXML_MINOR_VERSION} * 100 +
|
||||
${LIBXML_MICRO_VERSION}
|
||||
")
|
||||
|
||||
set(MODULE_EXTENSION "${CMAKE_SHARED_LIBRARY_SUFFIX}")
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user