From ad1406644fb51ee0097095915ffab099718268e0 Mon Sep 17 00:00:00 2001 From: Aleix Pol Date: Fri, 12 Sep 2014 00:02:20 +0200 Subject: Fix calls to qmake 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 --- modules/ECMQueryQmake.cmake | 1 + 1 file changed, 1 insertion(+) (limited to 'modules/ECMQueryQmake.cmake') 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) -- cgit v1.2.1