BUG: If bootstrap cmake is run with no argument produce error

This commit is contained in:
Andy Cedilnik 2004-10-27 11:26:49 -04:00
parent 36c8f1d157
commit cc5c136cb8
1 changed files with 6 additions and 0 deletions

View File

@ -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;