summaryrefslogtreecommitdiff
path: root/cmakeconfig.h.in
diff options
context:
space:
mode:
authorJeff Morriss <jeff.morriss.ws@gmail.com>2012-09-18 21:42:13 +0000
committerJeff Morriss <jeff.morriss.ws@gmail.com>2012-09-18 21:42:13 +0000
commit5ee932193f8d420cb1839347769841e82f3d8185 (patch)
tree6d62fcc8d4d29869405fa838d142664c4a0d5728 /cmakeconfig.h.in
parentb6e0cc28a56a0547c13d4547328bf827d8a66895 (diff)
downloadwireshark-5ee932193f8d420cb1839347769841e82f3d8185.tar.gz
*NIX (autofoo and cmake) part of the fix for
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6134 : Make VERSION_MAJOR, VERSION_MINOR, and VERSION_MICRO available in config.h so (e.g.) dissector writers can #if around them as necessary to make a piece of code compile with different versions of Wireshark. (Hopefully VERSION_MICRO is not important in this respect!) Windows also defines VERSION_EXTRA which can be used to help identify custom builds; this is not done for these build methods (yet?). svn path=/trunk/; revision=44986
Diffstat (limited to 'cmakeconfig.h.in')
-rw-r--r--cmakeconfig.h.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/cmakeconfig.h.in b/cmakeconfig.h.in
index 52777aef49..f8cd1cd0c5 100644
--- a/cmakeconfig.h.in
+++ b/cmakeconfig.h.in
@@ -7,6 +7,9 @@
/* Version number of package */
#define VERSION "${CPACK_PACKAGE_VERSION}"
+#define VERSION_MAJOR "${PROJECT_MAJOR_VERSION}"
+#define VERSION_MINOR "${PROJECT_MINOR_VERSION}"
+#define VERSION_MICRO "${PROJECT_PATCH_VERSION}"
/* FIXME: Move the path stuff to the CMakeInstallDirs.cmake file */
/* Directory for data */