summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
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 /CMakeLists.txt
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 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 4f492ad..9ecd734 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,5 +1,12 @@
PROJECT(CMake)
+# The CMake version number.
+SET(CMake_VERSION_MAJOR 1)
+SET(CMake_VERSION_MINOR 7)
+SET(CMake_VERSION_PATCH 0)
+SET(CMake_VERSION_STRING
+ "${CMake_VERSION_MAJOR}.${CMake_VERSION_MINOR}.${CMake_VERSION_PATCH}")
+
IF(${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION} GREATER 1.4)
IF(CMAKE_GENERATOR MATCHES "Visual Studio 7")
SET(CMAKE_SKIP_COMPATIBILITY_TESTS 1)