diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2001-06-07 18:52:29 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2001-06-07 18:52:29 (GMT) |
commit | 4f77d737c9d2ee681e17f5a672e18e85164550f1 (patch) | |
tree | 3fdcdaeac75422a958ff4e288adeafaf15de0ecf /Source/cmake.cxx | |
parent | 5b4a11af80d27649ef191f918e92c3e41779e987 (diff) | |
download | CMake-4f77d737c9d2ee681e17f5a672e18e85164550f1.zip CMake-4f77d737c9d2ee681e17f5a672e18e85164550f1.tar.gz CMake-4f77d737c9d2ee681e17f5a672e18e85164550f1.tar.bz2 |
ENH: move utilities to targets from makefile, and add versioning to cache
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r-- | Source/cmake.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx index c24051b..5543358 100644 --- a/Source/cmake.cxx +++ b/Source/cmake.cxx @@ -50,7 +50,8 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. void cmake::Usage(const char* program) { - std::cerr << "cmake version " << cmMakefile::GetVersion() << "\n"; + std::cerr << "cmake version " << cmMakefile::GetMajorVersion() + << "." << cmMakefile::GetMinorVersion() << "\n"; std::cerr << "Usage: " << program << " srcdir \n" << "Where cmake is run from the directory where you want the object files written\n"; } @@ -237,6 +238,7 @@ int cmake::Generate(const std::vector<std::string>& args) if(cmSystemTools::GetErrorOccuredFlag()) { + cmSystemTools::ResetErrorOccuredFlag(); return -1; } return 0; |