summaryrefslogtreecommitdiffstats
path: root/Source/cmStandardIncludes.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2003-07-08 03:20:30 (GMT)
committerBrad King <brad.king@kitware.com>2003-07-08 03:20:30 (GMT)
commited273acfa7884c0b9dddf480deec9a263f536c85 (patch)
tree2b460ff524f41e032d165ef75e92aaeb6323a9f1 /Source/cmStandardIncludes.h
parenteb7b7dc1046dbc9d60e12a16d2ae3242328f85c0 (diff)
downloadCMake-ed273acfa7884c0b9dddf480deec9a263f536c85.zip
CMake-ed273acfa7884c0b9dddf480deec9a263f536c85.tar.gz
CMake-ed273acfa7884c0b9dddf480deec9a263f536c85.tar.bz2
ENH: Improved name of cmake version variables. They are now CMake_VERSION (major.minor) and CMake_VERSION_FULL (major.minor.patch).
Diffstat (limited to 'Source/cmStandardIncludes.h')
-rw-r--r--Source/cmStandardIncludes.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/cmStandardIncludes.h b/Source/cmStandardIncludes.h
index 0b3aef5..98211b6 100644
--- a/Source/cmStandardIncludes.h
+++ b/Source/cmStandardIncludes.h
@@ -28,7 +28,11 @@
// CMAKE_NO_STD_NAMESPACE, and other macros.
#include "cmConfigure.h"
-#define CMake_VERSION_STRING \
+#define CMake_VERSION \
+ CMAKE_TO_STRING(CMake_VERSION_MAJOR) "." \
+ CMAKE_TO_STRING(CMake_VERSION_MINOR)
+
+#define CMake_VERSION_FULL \
CMAKE_TO_STRING(CMake_VERSION_MAJOR) "." \
CMAKE_TO_STRING(CMake_VERSION_MINOR) "." \
CMAKE_TO_STRING(CMake_VERSION_PATCH)