diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2004-10-27 15:26:49 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2004-10-27 15:26:49 (GMT) |
commit | cc5c136cb824238e426288381a302a6093a3c080 (patch) | |
tree | f3f5939ed1d9dc6846674a977ebbc4284c47b16f /Source/cmakemain.cxx | |
parent | 36c8f1d15792192790f0841d5658a105f44b420b (diff) | |
download | CMake-cc5c136cb824238e426288381a302a6093a3c080.zip CMake-cc5c136cb824238e426288381a302a6093a3c080.tar.gz CMake-cc5c136cb824238e426288381a302a6093a3c080.tar.bz2 |
BUG: If bootstrap cmake is run with no argument produce error
Diffstat (limited to 'Source/cmakemain.cxx')
-rw-r--r-- | Source/cmakemain.cxx | 6 |
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; |