From 242a236db4f8c8b1794cceaf6a97d66cc7cd8abe Mon Sep 17 00:00:00 2001 From: Ken Martin Date: Thu, 21 Jun 2001 17:53:15 -0400 Subject: [PATCH] adde changeDirectory --- Source/cmSystemTools.cxx | 4 ++++ Source/cmSystemTools.h | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx index 5d3864cd1..de181f099 100644 --- a/Source/cmSystemTools.cxx +++ b/Source/cmSystemTools.cxx @@ -906,6 +906,10 @@ bool cmSystemTools::FileIsDirectory(const char* name) } } +int cmSystemTools::ChangeDirectory(const char *dir) +{ + return Chdir(dir); +} std::string cmSystemTools::GetCurrentWorkingDirectory() { diff --git a/Source/cmSystemTools.h b/Source/cmSystemTools.h index 8ea7724c3..df5d2d5a7 100644 --- a/Source/cmSystemTools.h +++ b/Source/cmSystemTools.h @@ -237,7 +237,10 @@ public: ///! Generate a temporary file name static std::string TemporaryFileName(); - + + ///! change directory the the directory specified + static int ChangeDirectory(const char* dir); + private: static bool s_ErrorOccured; };