1 /*=========================================================================
3 Program: CMake - Cross-Platform Makefile Generator
4 Module: $RCSfile: cmVersionMacros.h,v $
6 Date: $Date: 2009-03-05 20:17:06 $
7 Version: $Revision: 1.1 $
9 Copyright (c) 2002 Kitware, Inc., Insight Consortium. All rights reserved.
10 See Copyright.txt or http://www.cmake.org/HTML/Copyright.html for details.
12 This software is distributed WITHOUT ANY WARRANTY; without even
13 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14 PURPOSE. See the above copyright notices for more information.
16 =========================================================================*/
17 #ifndef cmVersionMacros_h
18 #define cmVersionMacros_h
20 #include "cmVersionConfig.h"
22 #define CMAKE_TO_STRING(x) CMAKE_TO_STRING0(x)
23 #define CMAKE_TO_STRING0(x) #x
25 #define CMake_VERSION \
26 CMAKE_TO_STRING(CMake_VERSION_MAJOR) "." \
27 CMAKE_TO_STRING(CMake_VERSION_MINOR)
29 #define CMake_VERSION_FULL \
30 CMAKE_TO_STRING(CMake_VERSION_MAJOR) "." \
31 CMAKE_TO_STRING(CMake_VERSION_MINOR) "." \
32 CMAKE_TO_STRING(CMake_VERSION_PATCH)
34 #if !(CMake_VERSION_MINOR & 1) && defined(CMake_VERSION_RC)
35 # define CMake_VERSION_RC_SUFFIX "-rc" CMAKE_TO_STRING(CMake_VERSION_RC)
37 # define CMake_VERSION_RC_SUFFIX ""