CMakeLists.txt: Fix LIBXML_VERSION_NUMBER

Also fix LIBXML_VERSION and remove LIBXML_VERSION_STRING.

Fixes #365.
This commit is contained in:
Nick Wellnhofer 2022-04-07 02:05:41 +02:00
parent a62b31f43f
commit 94ac5e61f3

View File

@ -104,10 +104,13 @@ foreach(VARIABLE IN ITEMS WITH_AUTOMATA WITH_C14N WITH_CATALOG WITH_DEBUG WITH_E
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}")