summaryrefslogtreecommitdiffstats
path: root/Source/cmNinjaTargetGenerator.h
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2019-02-20 06:39:55 (GMT)
committerBrad King <brad.king@kitware.com>2019-02-25 15:06:20 (GMT)
commit72f9bb29939f3765216e98e672197b3899d75f7d (patch)
treec2f564228c8c1d4632ca8d446aba3b16b1c4fc82 /Source/cmNinjaTargetGenerator.h
parent2dd0cb7aeb2d70dcc6e103c29ce2ce3a02bd381a (diff)
downloadCMake-72f9bb29939f3765216e98e672197b3899d75f7d.zip
CMake-72f9bb29939f3765216e98e672197b3899d75f7d.tar.gz
CMake-72f9bb29939f3765216e98e672197b3899d75f7d.tar.bz2
ninja: make dyndep generation language aware
A target may have multiple languages with dyndep rules, separate `.dd` files should be generated.
Diffstat (limited to 'Source/cmNinjaTargetGenerator.h')
-rw-r--r--Source/cmNinjaTargetGenerator.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmNinjaTargetGenerator.h b/Source/cmNinjaTargetGenerator.h
index 373c693..2ffd256 100644
--- a/Source/cmNinjaTargetGenerator.h
+++ b/Source/cmNinjaTargetGenerator.h
@@ -10,6 +10,7 @@
#include "cmNinjaTypes.h"
#include "cmOSXBundleGenerator.h"
+#include <map>
#include <set>
#include <string>
#include <vector>
@@ -165,7 +166,7 @@ private:
cmLocalNinjaGenerator* LocalGenerator;
/// List of object files for this target.
cmNinjaDeps Objects;
- cmNinjaDeps DDIFiles; // TODO: Make per-language.
+ std::map<std::string, cmNinjaDeps> DDIFiles;
std::vector<cmCustomCommand const*> CustomCommands;
cmNinjaDeps ExtraFiles;
};