From b52a4a07312c0688c02035aa06ec963b111221c0 Mon Sep 17 00:00:00 2001 From: Ralf Habacker Date: Tue, 20 Sep 2011 08:42:31 +0200 Subject: [PATCH 1/2] cmake fix: install version string --- cmake/dbus/dbus-arch-deps.h.cmake | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/cmake/dbus/dbus-arch-deps.h.cmake b/cmake/dbus/dbus-arch-deps.h.cmake index 7d566e9..df8b0b5 100644 --- a/cmake/dbus/dbus-arch-deps.h.cmake +++ b/cmake/dbus/dbus-arch-deps.h.cmake @@ -51,6 +51,17 @@ typedef unsigned @DBUS_INT32_TYPE@ dbus_uint32_t; typedef @DBUS_INT16_TYPE@ dbus_int16_t; typedef unsigned @DBUS_INT16_TYPE@ dbus_uint16_t; +/* This is not really arch-dependent, but it's not worth + * creating an additional generated header just for this + */ +#define DBUS_MAJOR_VERSION @DBUS_MAJOR_VERSION@ +#define DBUS_MINOR_VERSION @DBUS_MINOR_VERSION@ +#define DBUS_MICRO_VERSION @DBUS_MICRO_VERSION@ + +#define DBUS_VERSION_STRING "@DBUS_VERSION@" + +#define DBUS_VERSION ((@DBUS_MAJOR_VERSION@ << 16) | (@DBUS_MINOR_VERSION@ << 8) | (@DBUS_MICRO_VERSION@)) + DBUS_END_DECLS; #endif /* DBUS_ARCH_DEPS_H */ -- 1.7.4.msysgit.0