summaryrefslogtreecommitdiffstats
path: root/Source/cmake.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2001-06-27 19:42:27 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2001-06-27 19:42:27 (GMT)
commita5cda2217d4e88b298be544e553725c5a3c80b56 (patch)
tree590bdac43fe4354e844dc8ccbca9f105ca2f0caf /Source/cmake.cxx
parent7bb9fdbeef33aec26e3b7b36e8a216b393a50a4b (diff)
downloadCMake-a5cda2217d4e88b298be544e553725c5a3c80b56.zip
CMake-a5cda2217d4e88b298be544e553725c5a3c80b56.tar.gz
CMake-a5cda2217d4e88b298be544e553725c5a3c80b56.tar.bz2
ENH: fix install for cygwin, build cmake from configure
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r--Source/cmake.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx
index 8f8cbf9..98b95c7 100644
--- a/Source/cmake.cxx
+++ b/Source/cmake.cxx
@@ -224,6 +224,11 @@ void cmake::AddCMakePaths(const std::vector<std::string>& args)
int cmake::Generate(const std::vector<std::string>& args)
{
+ if(args.size() == 1 && !cmSystemTools::FileExists("CMakeLists.txt"))
+ {
+ this->Usage(args[0].c_str());
+ return -1;
+ }
// look for obvious request for help
for(unsigned int i=1; i < args.size(); ++i)
{