MantisBT - CMake
View Issue Details
0013489CMakeModulespublic2012-08-24 11:342013-01-09 14:05
Petr Baloun 
Clinton Stimpson 
normalminoralways
closedfixed 
CMake 2.8.9 
 
0013489: Can't detect QT4 on OS considered as unsupported by QT
Use QT4 on OS version that is not supproted by QT4 - I tried QT 4.7.2 on Windows 8. CMake is not able to detect anything about the QT4.
Use following code:

include(FindQt4)
FindQt4 calls "qmake -query ..." to detect some information about QT4, the information is expected on qmake's stdout. On unsupported OS, qmake also dumps some warnings to stderr (in my case it's "QT: Untested Windows version 6.2 detected!").

The problem is that FindQt4 mixes both outputs in a single output variable so the stdout information is mixed with the warning which leads to situation that no information is read and no QT4 detected.

The patch attached simply cancels the redirection of qmake's stderr into output variable which has following results:
- QT4 is properly detected
- the warning is seen in the output by the user
No tags attached.
has duplicate 0013245closed Clinton Stimpson FindQt4.cmake doesn't work on Windows 8 
patch qt-unsupported-os.patch (795) 2012-08-24 11:34
https://public.kitware.com/Bug/file/4438/qt-unsupported-os.patch
Issue History
2012-08-24 11:34Petr BalounNew Issue
2012-08-24 11:34Petr BalounFile Added: qt-unsupported-os.patch
2012-08-24 11:41Stephen KellyNote Added: 0030757
2012-08-24 12:03Clinton StimpsonNote Added: 0030758
2012-08-24 12:03Clinton StimpsonStatusnew => resolved
2012-08-24 12:03Clinton StimpsonResolutionopen => fixed
2012-08-24 12:03Clinton StimpsonAssigned To => Clinton Stimpson
2012-08-24 12:05Clinton StimpsonRelationship addedhas duplicate 0013245
2013-01-09 14:05Robert MaynardNote Added: 0032080
2013-01-09 14:05Robert MaynardStatusresolved => closed

Notes
(0030757)
Stephen Kelly   
2012-08-24 11:41   
Similar to http://public.kitware.com/Bug/view.php?id=13245 [^] but that one has no patch.
(0030758)
Clinton Stimpson   
2012-08-24 12:03   
Thanks for the patch.
http://cmake.org/gitweb?p=cmake.git;a=commit;h=caa915 [^]
(0032080)
Robert Maynard   
2013-01-09 14:05   
Closing resolved issues that have not been updated in more than 4 months.