summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2004-10-27 15:26:49 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2004-10-27 15:26:49 (GMT)
commitcc5c136cb824238e426288381a302a6093a3c080 (patch)
treef3f5939ed1d9dc6846674a977ebbc4284c47b16f
parent36c8f1d15792192790f0841d5658a105f44b420b (diff)
downloadCMake-cc5c136cb824238e426288381a302a6093a3c080.zip
CMake-cc5c136cb824238e426288381a302a6093a3c080.tar.gz
CMake-cc5c136cb824238e426288381a302a6093a3c080.tar.bz2
BUG: If bootstrap cmake is run with no argument produce error
-rw-r--r--Source/cmakemain.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/cmakemain.cxx b/Source/cmakemain.cxx
index be32840..932aab9 100644
--- a/Source/cmakemain.cxx
+++ b/Source/cmakemain.cxx
@@ -162,6 +162,12 @@ int do_cmake(int ac, char** av)
}
return result;
}
+#else
+ if ( nocwd || ac == 1 )
+ {
+ std::cout << "Bootstrap CMake should not be used outside CMake build process." << std::endl;
+ return 0;
+ }
#endif
bool wiz = false;