summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefile.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2001-10-02 21:28:55 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2001-10-02 21:28:55 (GMT)
commit8591786867111568298394242a80ddc0a321f5ad (patch)
treedd9b0251953724c9189d6d7bc103567573dbc6a0 /Source/cmMakefile.cxx
parentc9caf2390c86b98bbeca1e4e52d04fbbb563f083 (diff)
downloadCMake-8591786867111568298394242a80ddc0a321f5ad.zip
CMake-8591786867111568298394242a80ddc0a321f5ad.tar.gz
CMake-8591786867111568298394242a80ddc0a321f5ad.tar.bz2
ENH: add better error reports in parsing cmake files, like what file has the error
Diffstat (limited to 'Source/cmMakefile.cxx')
-rw-r--r--Source/cmMakefile.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx
index f3e777e..760fe36 100644
--- a/Source/cmMakefile.cxx
+++ b/Source/cmMakefile.cxx
@@ -256,7 +256,9 @@ void cmMakefile::ExecuteCommand(std::string &name,
}
else
{
- cmSystemTools::Error("unknown CMake command ", name.c_str());
+ cmSystemTools::Error("unknown CMake command:", name.c_str(),
+ "\nReading cmake file in directory:" ,
+ m_cmCurrentDirectory.c_str());
}
}