summaryrefslogtreecommitdiffstats
path: root/Source/cmakemain.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2005-02-16 18:15:25 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2005-02-16 18:15:25 (GMT)
commitee0db4aeb468056b978ff5282463e393b27c55e0 (patch)
tree73b5293ea00c8ee028579fe3b0efc649138b4905 /Source/cmakemain.cxx
parente689bfa20102a1287a698c081b7c2670adfda120 (diff)
downloadCMake-ee0db4aeb468056b978ff5282463e393b27c55e0.zip
CMake-ee0db4aeb468056b978ff5282463e393b27c55e0.tar.gz
CMake-ee0db4aeb468056b978ff5282463e393b27c55e0.tar.bz2
BUG: fix CommandLine test problems with spaces and testing for the return value
Diffstat (limited to 'Source/cmakemain.cxx')
-rw-r--r--Source/cmakemain.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/cmakemain.cxx b/Source/cmakemain.cxx
index 932aab9..829d907 100644
--- a/Source/cmakemain.cxx
+++ b/Source/cmakemain.cxx
@@ -184,7 +184,9 @@ int do_cmake(int ac, char** av)
{
wiz = true;
}
- else if (strcmp(av[i], "-E") == 0)
+ // if command has already been set, then
+ // do not eat the -E
+ else if (!command && strcmp(av[i], "-E") == 0)
{
command = true;
}