From cc5c136cb824238e426288381a302a6093a3c080 Mon Sep 17 00:00:00 2001 From: Andy Cedilnik Date: Wed, 27 Oct 2004 11:26:49 -0400 Subject: [PATCH] BUG: If bootstrap cmake is run with no argument produce error --- Source/cmakemain.cxx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Source/cmakemain.cxx b/Source/cmakemain.cxx index be3284041..932aab95f 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;