diff options
author | Sebastian Holtermann <sebholt@xwmw.org> | 2019-02-19 16:02:03 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-02-19 18:11:44 (GMT) |
commit | a4e01d6707e9cfe50b2f49f140c8a9894cd8108f (patch) | |
tree | 4e23a09a70a9d96e34108a105f8d31d9f4cbc18c /Source/cmQtAutoGenGlobalInitializer.h | |
parent | e6897c72e7c59f7a0b82ed19c1bdb40d42f7adaa (diff) | |
download | CMake-a4e01d6707e9cfe50b2f49f140c8a9894cd8108f.zip CMake-a4e01d6707e9cfe50b2f49f140c8a9894cd8108f.tar.gz CMake-a4e01d6707e9cfe50b2f49f140c8a9894cd8108f.tar.bz2 |
Autogen: Add output caching GetExecutableTestOutput
This adds the cmQtAutoGenGlobalInitializer::GetExecutableTestOutput method
which caches the output of the called executable and returns the cached value
on any subsequent call.
Diffstat (limited to 'Source/cmQtAutoGenGlobalInitializer.h')
-rw-r--r-- | Source/cmQtAutoGenGlobalInitializer.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/cmQtAutoGenGlobalInitializer.h b/Source/cmQtAutoGenGlobalInitializer.h index 9e6bac0..74184a0 100644 --- a/Source/cmQtAutoGenGlobalInitializer.h +++ b/Source/cmQtAutoGenGlobalInitializer.h @@ -8,6 +8,7 @@ #include <map> #include <memory> // IWYU pragma: keep #include <string> +#include <unordered_map> #include <vector> class cmLocalGenerator; @@ -38,10 +39,15 @@ private: void AddToGlobalAutoRcc(cmLocalGenerator* localGen, std::string const& targetName); + bool GetExecutableTestOutput(std::string const& generator, + std::string const& executable, + std::string& error, std::string* output); + private: std::vector<std::unique_ptr<cmQtAutoGenInitializer>> Initializers_; std::map<cmLocalGenerator*, std::string> GlobalAutoGenTargets_; std::map<cmLocalGenerator*, std::string> GlobalAutoRccTargets_; + std::unordered_map<std::string, std::string> ExecutableTestOutputs_; }; #endif |