summaryrefslogtreecommitdiff
path: root/Source/cmNinjaTargetGenerator.cxx
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2012-03-17 20:49:36 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2012-03-17 23:16:40 +0000
commitdf847671b43f35162570db1e6f2801bc3b2de11a (patch)
treee9a985a74f40621013a07f7289a2add8591bfe30 /Source/cmNinjaTargetGenerator.cxx
parent48eb7fc7d7b3fa5570a7b32968fa2cff07bf6fe7 (diff)
downloadcmake-df847671b43f35162570db1e6f2801bc3b2de11a.tar.gz
Ninja: add support for OBJECT_OUTPUTS, fix PrecompiledHeader test case
Diffstat (limited to 'Source/cmNinjaTargetGenerator.cxx')
-rw-r--r--Source/cmNinjaTargetGenerator.cxx11
1 files changed, 11 insertions, 0 deletions
diff --git a/Source/cmNinjaTargetGenerator.cxx b/Source/cmNinjaTargetGenerator.cxx
index b9f997dc47..9acbc676aa 100644
--- a/Source/cmNinjaTargetGenerator.cxx
+++ b/Source/cmNinjaTargetGenerator.cxx
@@ -475,6 +475,17 @@ cmNinjaTargetGenerator
emptyDeps,
orderOnlyDeps,
vars);
+
+ if(const char* objectOutputs = source->GetProperty("OBJECT_OUTPUTS")) {
+ std::vector<std::string> outputList;
+ cmSystemTools::ExpandListArgument(objectOutputs, outputList);
+ std::transform(outputList.begin(), outputList.end(), outputList.begin(),
+ MapToNinjaPath());
+ cmGlobalNinjaGenerator::WritePhonyBuild(this->GetBuildFileStream(),
+ "Additional output files.",
+ outputList,
+ outputs);
+ }
}
//----------------------------------------------------------------------------