summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2002-09-30 20:46:19 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2002-09-30 20:46:19 (GMT)
commit779810f132697b2d6be8b8ab0b797ef0cca3a0e4 (patch)
tree60ca8aca86ca5471e72a7377b95ff643268be1a7 /Source
parenta63f7ba43c9200dd385b34c658c500eedc222e3f (diff)
downloadCMake-779810f132697b2d6be8b8ab0b797ef0cca3a0e4.zip
CMake-779810f132697b2d6be8b8ab0b797ef0cca3a0e4.tar.gz
CMake-779810f132697b2d6be8b8ab0b797ef0cca3a0e4.tar.bz2
Fix bug in chdir; Who did this anyway...
Diffstat (limited to 'Source')
-rw-r--r--Source/cmake.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx
index 7c360f8..e68c3f4 100644
--- a/Source/cmake.cxx
+++ b/Source/cmake.cxx
@@ -542,7 +542,7 @@ int cmake::CMakeCommand(std::vector<std::string>& args)
}
// Clock command
- else if (args[1] == "chdir" && args.size() == 4)
+ else if (args[1] == "chdir" && args.size() >= 4)
{
std::string directory = args[2];
std::string command = args[3];