diff options
author | Kyle Edwards <kyle.edwards@kitware.com> | 2020-01-24 20:51:44 (GMT) |
---|---|---|
committer | Kyle Edwards <kyle.edwards@kitware.com> | 2020-01-24 22:16:25 (GMT) |
commit | 63c9cd2088cc1287e4d4cd858bbdb8ca88dd8313 (patch) | |
tree | 2b4632fd229f3f78037bf461ddf93160b05a0c17 /Source/cmNinjaTargetGenerator.h | |
parent | 072a95350ca914c12afd4f617cb45f0477883b14 (diff) | |
download | CMake-63c9cd2088cc1287e4d4cd858bbdb8ca88dd8313.zip CMake-63c9cd2088cc1287e4d4cd858bbdb8ca88dd8313.tar.gz CMake-63c9cd2088cc1287e4d4cd858bbdb8ca88dd8313.tar.bz2 |
Ninja Multi-Config: Fix bug with MacOS frameworks
Diffstat (limited to 'Source/cmNinjaTargetGenerator.h')
-rw-r--r-- | Source/cmNinjaTargetGenerator.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Source/cmNinjaTargetGenerator.h b/Source/cmNinjaTargetGenerator.h index bca12b1..8678dc3 100644 --- a/Source/cmNinjaTargetGenerator.h +++ b/Source/cmNinjaTargetGenerator.h @@ -9,6 +9,7 @@ #include <memory> #include <set> #include <string> +#include <utility> #include <vector> #include "cm_jsoncpp_value.h" @@ -173,8 +174,10 @@ protected: struct MacOSXContentGeneratorType : cmOSXBundleGenerator::MacOSXContentGeneratorType { - MacOSXContentGeneratorType(cmNinjaTargetGenerator* g) + MacOSXContentGeneratorType(cmNinjaTargetGenerator* g, + std::string fileConfig) : Generator(g) + , FileConfig(std::move(fileConfig)) { } @@ -183,10 +186,10 @@ protected: private: cmNinjaTargetGenerator* Generator; + std::string FileConfig; }; friend struct MacOSXContentGeneratorType; - std::unique_ptr<MacOSXContentGeneratorType> MacOSXContentGenerator; // Properly initialized by sub-classes. std::unique_ptr<cmOSXBundleGenerator> OSXBundleGenerator; std::set<std::string> MacContentFolders; @@ -209,6 +212,7 @@ private: Json::Value SwiftOutputMap; std::vector<cmCustomCommand const*> CustomCommands; cmNinjaDeps ExtraFiles; + std::unique_ptr<MacOSXContentGeneratorType> MacOSXContentGenerator; }; std::map<std::string, ByConfig> Configs; |