diff options
author | Sebastian Holtermann <sebholt@xwmw.org> | 2019-01-14 17:32:17 (GMT) |
---|---|---|
committer | Sebastian Holtermann <sebholt@xwmw.org> | 2019-01-15 09:15:03 (GMT) |
commit | 5fe18eee1392c312612fad0e6f408ea7cb1ef29d (patch) | |
tree | 7ba19ab63a68562416c17c3e6eec76ac89dd4582 /Source/cmQtAutoGenInitializer.h | |
parent | f2f166133402ad5f7998e0fef93b04f56c2f6d07 (diff) | |
download | CMake-5fe18eee1392c312612fad0e6f408ea7cb1ef29d.zip CMake-5fe18eee1392c312612fad0e6f408ea7cb1ef29d.tar.gz CMake-5fe18eee1392c312612fad0e6f408ea7cb1ef29d.tar.bz2 |
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 5cef1b3..47f157c 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, |