diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2004-10-22 19:44:54 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2004-10-22 19:44:54 (GMT) |
commit | fc70a2bb2ae2c905c6fa9b6b8e6a0caa99ca3ee4 (patch) | |
tree | 38c00cbcf652d9319baf841a1ba3f8fd166b968d /Source/cmake.cxx | |
parent | f4a04a96eb57fc01b612b6af11b7e7ae66fc0cc4 (diff) | |
download | CMake-fc70a2bb2ae2c905c6fa9b6b8e6a0caa99ca3ee4.zip CMake-fc70a2bb2ae2c905c6fa9b6b8e6a0caa99ca3ee4.tar.gz CMake-fc70a2bb2ae2c905c6fa9b6b8e6a0caa99ca3ee4.tar.bz2 |
ENH: Add development version support in CMake
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r-- | Source/cmake.cxx | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx index c56c740..d5be496 100644 --- a/Source/cmake.cxx +++ b/Source/cmake.cxx @@ -22,6 +22,7 @@ #include "cmCommands.h" #include "cmCommand.h" #include "cmVariableWatch.h" +#include "cmVersion.h" // only build kdevelop generator on non-windows platforms // when not bootstrapping cmake @@ -175,8 +176,7 @@ void cmake::Usage(const char* program) { cmOStringStream errorStream; - errorStream << "cmake version " << cmMakefile::GetMajorVersion() - << "." << cmMakefile::GetMinorVersion() << "\n"; + errorStream << "cmake version " << cmVersion::GetCMakeVersion() << "\n"; errorStream << "Usage: " << program << " [srcdir] [options]\n" << "Where cmake is run from the directory where you want the object files written. If srcdir is not specified, the current directory is used for both source and object files.\n"; errorStream << "Options are:\n"; @@ -653,8 +653,7 @@ void CMakeCommandUsage(const char* program) cmOStringStream errorStream; errorStream - << "cmake version " << cmMakefile::GetMajorVersion() - << "." << cmMakefile::GetMinorVersion() << "\n"; + << "cmake version " << cmVersion::GetCMakeVersion() << "\n"; errorStream << "Usage: " << program << " -E [command] [arguments ...]\n" @@ -1382,8 +1381,8 @@ int cmake::DumpDocumentationToFile(std::ostream& f) const char *terse; const char *full; char tmp[1024]; - sprintf(tmp,"Version %d.%d", cmake::GetMajorVersion(), - cmake::GetMinorVersion()); + sprintf(tmp,"Version %d.%d (%s)", cmake::GetMajorVersion(), + cmake::GetMinorVersion(), cmVersion::GetReleaseVersion().c_str()); f << "<html>\n"; f << "<h1>Documentation for commands of CMake " << tmp << "</h1>\n"; f << "<ul>\n"; |