diff options
author | Aleix Pol <aleixpol@kde.org> | 2014-09-12 00:02:20 +0200 |
---|---|---|
committer | Aleix Pol <aleixpol@kde.org> | 2014-09-12 00:02:20 +0200 |
commit | ad1406644fb51ee0097095915ffab099718268e0 (patch) | |
tree | 3b67ba8e49431df64ceb54ae301d905b01269e35 | |
parent | f8609e8b64fd9170aa1444ad4e2f6d6d759e9050 (diff) | |
download | extra-cmake-modules-1.2.1.tar.gz extra-cmake-modules-1.2.1.tar.bz2 |
Fix calls to qmakev1.2.1
We were keeping the \n after the path, and it would crash in some
places. Strip the whitespaces in both ends.
Reviewed by Rohan Garg
-rw-r--r-- | modules/ECMQueryQmake.cmake | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/ECMQueryQmake.cmake b/modules/ECMQueryQmake.cmake index ef9aaae0..2aa19ff7 100644 --- a/modules/ECMQueryQmake.cmake +++ b/modules/ECMQueryQmake.cmake @@ -13,6 +13,7 @@ function(query_qmake result_variable qt_variable) RESULT_VARIABLE return_code OUTPUT_VARIABLE output ) + string(STRIP ${output} output) if(return_code EQUAL 0) file(TO_CMAKE_PATH "${output}" output_path) set(${result_variable} "${output_path}" PARENT_SCOPE) |