summaryrefslogtreecommitdiffstats
path: root/Source/cmStandardIncludes.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2003-02-14 02:57:05 (GMT)
committerBrad King <brad.king@kitware.com>2003-02-14 02:57:05 (GMT)
commit1fe42129d43d659f33ed72e63c26e7c9f8cf64d9 (patch)
tree14e46cb1e8dbb31338cf4fa0ed6f937a218ccb9c /Source/cmStandardIncludes.h
parent170fe935d2cdcbfd02e4385a3ca5abf3bf4b4192 (diff)
downloadCMake-1fe42129d43d659f33ed72e63c26e7c9f8cf64d9.zip
CMake-1fe42129d43d659f33ed72e63c26e7c9f8cf64d9.tar.gz
CMake-1fe42129d43d659f33ed72e63c26e7c9f8cf64d9.tar.bz2
ENH: Centralized setting of CMake version number to top-level CMake listfile.
Diffstat (limited to 'Source/cmStandardIncludes.h')
-rw-r--r--Source/cmStandardIncludes.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/cmStandardIncludes.h b/Source/cmStandardIncludes.h
index ceab7fc..937d9c2 100644
--- a/Source/cmStandardIncludes.h
+++ b/Source/cmStandardIncludes.h
@@ -21,12 +21,20 @@
#ifndef cmStandardIncludes_h
#define cmStandardIncludes_h
+#define CMAKE_TO_STRING(x) CMAKE_TO_STRING0(x)
+#define CMAKE_TO_STRING0(x) #x
+
// include configure generated header to define
// CMAKE_NO_ANSI_STREAM_HEADERS and CMAKE_NO_STD_NAMESPACE
#if defined(CMAKE_HAS_AUTOCONF) || defined(CMAKE_BUILD_WITH_CMAKE)
#include "cmConfigure.h"
#endif
+#define CMake_VERSION_STRING \
+ CMAKE_TO_STRING(CMake_VERSION_MAJOR) "." \
+ CMAKE_TO_STRING(CMake_VERSION_MINOR) "." \
+ CMAKE_TO_STRING(CMake_VERSION_PATCH)
+
#ifdef _MSC_VER
#pragma warning ( disable : 4786 )
#pragma warning ( disable : 4503 )