diff options
author | Sebastian Holtermann <sebholt@xwmw.org> | 2019-01-14 18:32:17 +0100 |
---|---|---|
committer | Sebastian Holtermann <sebholt@xwmw.org> | 2019-01-15 10:15:03 +0100 |
commit | 5fe18eee1392c312612fad0e6f408ea7cb1ef29d (patch) | |
tree | 7ba19ab63a68562416c17c3e6eec76ac89dd4582 /Source/cmQtAutoGenInitializer.h | |
parent | f2f166133402ad5f7998e0fef93b04f56c2f6d07 (diff) | |
download | cmake-5fe18eee1392c312612fad0e6f408ea7cb1ef29d.tar.gz |
Autogen: Adaptive missing Qt warning
This makes the warning message for a missing Qt use
the requested Qt version in the message text.
Diffstat (limited to 'Source/cmQtAutoGenInitializer.h')
-rw-r--r-- | Source/cmQtAutoGenInitializer.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/cmQtAutoGenInitializer.h b/Source/cmQtAutoGenInitializer.h index 5cef1b3367..47f157c305 100644 --- a/Source/cmQtAutoGenInitializer.h +++ b/Source/cmQtAutoGenInitializer.h @@ -11,6 +11,7 @@ #include <ostream> #include <set> #include <string> +#include <utility> #include <vector> class cmGeneratorTarget; @@ -76,7 +77,9 @@ public: }; public: - static IntegerVersion GetQtVersion(cmGeneratorTarget const* target); + /// @return The detected Qt version and the required Qt major version + static std::pair<IntegerVersion, unsigned int> GetQtVersion( + cmGeneratorTarget const* target); cmQtAutoGenInitializer(cmQtAutoGenGlobalInitializer* globalInitializer, cmGeneratorTarget* target, |