diff options
author | Alexander Neundorf <neundorf@kde.org> | 2007-01-03 16:48:08 -0500 |
---|---|---|
committer | Alexander Neundorf <neundorf@kde.org> | 2007-01-03 16:48:08 -0500 |
commit | c8c4b689518984491fe215009fc6d0e6374660bf (patch) | |
tree | 035e0d0eb19f5f0f1fc7653bd83bb7b41d87bc9c /Modules/FindQt4.cmake | |
parent | f35f487d805f8a1b8711d471da7c1d250df1fb98 (diff) | |
download | cmake-c8c4b689518984491fe215009fc6d0e6374660bf.tar.gz |
STYLE: some more space to make it easier to read
Alex
Diffstat (limited to 'Modules/FindQt4.cmake')
-rw-r--r-- | Modules/FindQt4.cmake | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Modules/FindQt4.cmake b/Modules/FindQt4.cmake index 5e39c35fc0..83ed95f8e2 100644 --- a/Modules/FindQt4.cmake +++ b/Modules/FindQt4.cmake @@ -196,17 +196,20 @@ FIND_PROGRAM(QT_QMAKE_EXECUTABLE NAMES qmake qmake-qt4 PATHS SET(QT4_INSTALLED_VERSION_TOO_OLD FALSE) -## macro for asking qmake to process pro files +# macro for asking qmake to process pro files MACRO(QT_QUERY_QMAKE outvar invar) FILE(WRITE ${CMAKE_CURRENT_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeTmpQmake/tmp.pro "message(CMAKE_MESSAGE<$$${invar}>)") + EXECUTE_PROCESS(COMMAND ${QT_QMAKE_EXECUTABLE} WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeTmpQmake OUTPUT_VARIABLE _qmake_query_output ERROR_VARIABLE _qmake_query_output ) + FILE(REMOVE_RECURSE "${CMAKE_CURRENT_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeTmpQmake") + STRING(REGEX REPLACE ".*CMAKE_MESSAGE<([^>]*).*" "\\1" ${outvar} "${_qmake_query_output}") ENDMACRO(QT_QUERY_QMAKE) |