-function(to_hex HEX)
- # mind you, not really hexadecimal, but just a decimal in hex notation, huh?!
- set(XNUMBER 0x)
- foreach(DEC IN LISTS ARGN)
- while(1)
- string(LENGTH "${DEC}" LEN)
- if(LEN GREATER_EQUAL 3)
- break()
- endif()
- string(CONCAT DEC "0" "${DEC}")
- endwhile()
- if(DEC GREATER 999)
- message(WARNING "to_hex(HEX ${DEC}): decimal wider than 3 digits")
- endif()
- string(APPEND XNUMBER ${DEC})
- endforeach()
- set(${HEX} ${XNUMBER} PARENT_SCOPE)
-endfunction()
-
#
# libmemcached
#
-set(LIBMEMCACHED_VERSION_MAJOR 1)
-set(LIBMEMCACHED_VERSION_MINOR 1)
-set(LIBMEMCACHED_VERSION_PATCH 0)
-
-set(LIBMEMCACHED_VERSION ${LIBMEMCACHED_VERSION_MAJOR}.${LIBMEMCACHED_VERSION_MINOR}.${LIBMEMCACHED_VERSION_PATCH})
-set(LIBMEMCACHED_VERSION_INC ${LIBMEMCACHED_VERSION_MAJOR}.0)
-to_hex(LIBMEMCACHED_VERSION_HEX ${LIBMEMCACHED_VERSION_MAJOR} ${LIBMEMCACHED_VERSION_MINOR} ${LIBMEMCACHED_VERSION_PATCH})
+set(LIBMEMCACHED_VERSION 1.1.0)
+set(LIBMEMCACHED_VERSION_INC 1.0)
+set(LIBMEMCACHED_VERSION_HEX 0x001001000)
# libmemcached.so
# libmemcachedutil
#
-set(LIBMEMCACHEDUTIL_VERSION_MAJOR 1)
-set(LIBMEMCACHEDUTIL_VERSION_MINOR 1)
-set(LIBMEMCACHEDUTIL_VERSION_PATCH 0)
-
-set(LIBMEMCACHEDUTIL_VERSION ${LIBMEMCACHEDUTIL_VERSION_MAJOR}.${LIBMEMCACHEDUTIL_VERSION_MINOR}.${LIBMEMCACHEDUTIL_VERSION_PATCH})
-set(LIBMEMCACHEDUTIL_VERSION_INC ${LIBMEMCACHEDUTIL_VERSION_MAJOR}.0)
-to_hex(LIBMEMCACHEDUTIL_VERSION_HEX ${LIBMEMCACHEDUTIL_VERSION_MAJOR} ${LIBMEMCACHEDUTIL_VERSION_MINOR} ${LIBMEMCACHEDUTIL_VERSION_PATCH})
+set(LIBMEMCACHEDUTIL_VERSION 1.1.0)
+set(LIBMEMCACHEDUTIL_VERSION_INC 1.0)
+set(LIBMEMCACHEDUTIL_VERSION_HEX 0x001001000)
# libmemcachedutil.so
# libmemcachedprotocol
#
-set(LIBMEMCACHEDPROTOCOL_VERSION_MAJOR 0)
-set(LIBMEMCACHEDPROTOCOL_VERSION_MINOR 1)
-set(LIBMEMCACHEDPROTOCOL_VERSION_PATCH 0)
-
-set(LIBMEMCACHEDPROTOCOL_VERSION ${LIBMEMCACHEDPROTOCOL_VERSION_MAJOR}.${LIBMEMCACHEDPROTOCOL_VERSION_MINOR}.${LIBMEMCACHEDPROTOCOL_VERSION_PATCH})
-set(LIBMEMCACHEDPROTOCOL_VERSION_INC ${LIBMEMCACHEDPROTOCOL_VERSION_MAJOR}.0)
-to_hex(LIBMEMCACHEDPROTOCOL_VERSION_HEX ${LIBMEMCACHEDPROTOCOL_VERSION_MAJOR} ${LIBMEMCACHEDPROTOCOL_VERSION_MINOR} ${LIBMEMCACHEDPROTOCOL_VERSION_PATCH})
+set(LIBMEMCACHEDPROTOCOL_VERSION 0.1.0)
+set(LIBMEMCACHEDPROTOCOL_VERSION_INC 0.0)
+set(LIBMEMCACHEDPROTOCOL_VERSION_HEX 0x000001000)
# libmemcachedprotocol.so
# libhashkit
#
-set(LIBHASHKIT_VERSION_MAJOR 1)
-set(LIBHASHKIT_VERSION_MINOR 1)
-set(LIBHASHKIT_VERSION_PATCH 0)
-
-set(LIBHASHKIT_VERSION ${LIBHASHKIT_VERSION_MAJOR}.${LIBHASHKIT_VERSION_MINOR}.${LIBHASHKIT_VERSION_PATCH})
-set(LIBHASHKIT_VERSION_INC ${LIBHASHKIT_VERSION_MAJOR}.0)
-to_hex(LIBHASHKIT_VERSION_HEX ${LIBHASHKIT_VERSION_MAJOR} ${LIBHASHKIT_VERSION_MINOR} ${LIBHASHKIT_VERSION_PATCH})
+set(LIBHASHKIT_VERSION 1.1.0)
+set(LIBHASHKIT_VERSION_INC 1.0)
+set(LIBHASHKIT_VERSION_HEX 0x00100100)
# libhashkit.so