Fix errors detecting Qt4 on Windows 8.

Thanks to Petr Baloun for the patch.
This commit is contained in:
Clinton Stimpson 2012-08-24 09:54:31 -06:00
parent 19d9f5908b
commit caa9151169
1 changed files with 1 additions and 1 deletions

View File

@ -482,7 +482,7 @@ endmacro ()
function(_QT4_QUERY_QMAKE VAR RESULT) function(_QT4_QUERY_QMAKE VAR RESULT)
execute_process(COMMAND "${QT_QMAKE_EXECUTABLE}" -query ${VAR} execute_process(COMMAND "${QT_QMAKE_EXECUTABLE}" -query ${VAR}
RESULT_VARIABLE return_code RESULT_VARIABLE return_code
OUTPUT_VARIABLE output ERROR_VARIABLE output OUTPUT_VARIABLE output
OUTPUT_STRIP_TRAILING_WHITESPACE ERROR_STRIP_TRAILING_WHITESPACE) OUTPUT_STRIP_TRAILING_WHITESPACE ERROR_STRIP_TRAILING_WHITESPACE)
if(NOT return_code) if(NOT return_code)
file(TO_CMAKE_PATH "${output}" output) file(TO_CMAKE_PATH "${output}" output)