diff options
author | Jeff Morriss <jeff.morriss.ws@gmail.com> | 2012-09-18 21:42:13 +0000 |
---|---|---|
committer | Jeff Morriss <jeff.morriss.ws@gmail.com> | 2012-09-18 21:42:13 +0000 |
commit | 5ee932193f8d420cb1839347769841e82f3d8185 (patch) | |
tree | 6d62fcc8d4d29869405fa838d142664c4a0d5728 /cmakeconfig.h.in | |
parent | b6e0cc28a56a0547c13d4547328bf827d8a66895 (diff) | |
download | wireshark-5ee932193f8d420cb1839347769841e82f3d8185.tar.gz wireshark-5ee932193f8d420cb1839347769841e82f3d8185.tar.bz2 wireshark-5ee932193f8d420cb1839347769841e82f3d8185.zip |
*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.in | 3 |
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 */ |