summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2001-06-21 21:53:15 (GMT)
committerKen Martin <ken.martin@kitware.com>2001-06-21 21:53:15 (GMT)
commit242a236db4f8c8b1794cceaf6a97d66cc7cd8abe (patch)
treea09f4c8d7ca022df12286637ec9f1d31df2f6344
parentbda5baa566ffffeda6c2dad0d2df98bbff4ca966 (diff)
downloadCMake-242a236db4f8c8b1794cceaf6a97d66cc7cd8abe.zip
CMake-242a236db4f8c8b1794cceaf6a97d66cc7cd8abe.tar.gz
CMake-242a236db4f8c8b1794cceaf6a97d66cc7cd8abe.tar.bz2
adde changeDirectory
-rw-r--r--Source/cmSystemTools.cxx4
-rw-r--r--Source/cmSystemTools.h5
2 files changed, 8 insertions, 1 deletions
diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx
index 5d3864c..de181f0 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 8ea7724..df5d2d5 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;
};