summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalNinjaGenerator.cxx
diff options
context:
space:
mode:
authorPeter Kümmel <syntheticpp@gmx.net>2012-07-10 08:42:24 (GMT)
committerPeter Kümmel <syntheticpp@gmx.net>2012-07-10 08:53:25 (GMT)
commit3856e6698eb80d4ee3d8d7606c16e5fa3a2bef8c (patch)
treec2a6c9da472e96de2c53e0e27f9026135291367e /Source/cmGlobalNinjaGenerator.cxx
parent8c1e35c19505a1382e5c43a32cbdfe5379dc65d3 (diff)
downloadCMake-3856e6698eb80d4ee3d8d7606c16e5fa3a2bef8c.zip
CMake-3856e6698eb80d4ee3d8d7606c16e5fa3a2bef8c.tar.gz
CMake-3856e6698eb80d4ee3d8d7606c16e5fa3a2bef8c.tar.bz2
Ninja: error on missing rspfile_content
Diffstat (limited to 'Source/cmGlobalNinjaGenerator.cxx')
-rw-r--r--Source/cmGlobalNinjaGenerator.cxx14
1 files changed, 9 insertions, 5 deletions
diff --git a/Source/cmGlobalNinjaGenerator.cxx b/Source/cmGlobalNinjaGenerator.cxx
index 2bb409c..07cc75f 100644
--- a/Source/cmGlobalNinjaGenerator.cxx
+++ b/Source/cmGlobalNinjaGenerator.cxx
@@ -306,11 +306,15 @@ void cmGlobalNinjaGenerator::WriteRule(std::ostream& os,
if(!rspfile.empty())
{
- cmGlobalNinjaGenerator::Indent(os, 1);
- os << "rspfile = " << rspfile << "\n";
- cmGlobalNinjaGenerator::Indent(os, 1);
- os << "rspfile_content = " <<
- (rspcontent.empty() ? "$in" :rspcontent) << "\n";
+ if (rspcontent.empty())
+ {
+ cmSystemTools::Error("No rspfile_content given!", comment.c_str());
+ return;
+ }
+ cmGlobalNinjaGenerator::Indent(os, 1);
+ os << "rspfile = " << rspfile << "\n";
+ cmGlobalNinjaGenerator::Indent(os, 1);
+ os << "rspfile_content = " << rspcontent << "\n";
}
if(restat)