aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleix Pol <aleixpol@kde.org>2014-09-12 00:02:20 +0200
committerAleix Pol <aleixpol@kde.org>2014-09-12 00:02:20 +0200
commitad1406644fb51ee0097095915ffab099718268e0 (patch)
tree3b67ba8e49431df64ceb54ae301d905b01269e35
parentf8609e8b64fd9170aa1444ad4e2f6d6d759e9050 (diff)
downloadextra-cmake-modules-ad1406644fb51ee0097095915ffab099718268e0.tar.gz
extra-cmake-modules-ad1406644fb51ee0097095915ffab099718268e0.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.cmake1
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)