From c218716497093e5961c24b7c7fb9ed2c4160c204 Mon Sep 17 00:00:00 2001
From: Joerg Bornemann <joerg.bornemann@qt.io>
Date: Thu, 13 Jul 2017 09:41:12 +0200
Subject: [PATCH] Yield error if the build directory contains spaces

Task-number: QTBUG-61275
Change-Id: I7e741ffaaa4044b3b61b6df06ea3eab181db9c97
Reviewed-by: Michal Klocek <michal.klocek@qt.io>
---
 qtwebengine.pro | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/qtwebengine.pro b/qtwebengine.pro
index 5ae80ea8c..034e946c4 100644
--- a/qtwebengine.pro
+++ b/qtwebengine.pro
@@ -1,10 +1,13 @@
 load(qt_parts)
 
 isPlatformSupported() {
-   !exists(src/3rdparty/chromium): \
-       error("Submodule qtwebengine-chromium does not exist. Run 'git submodule update --init'.")
-   load(configure)
-   runConfigure()
+    !exists(src/3rdparty/chromium): \
+        error("Submodule qtwebengine-chromium does not exist. Run 'git submodule update --init'.")
+    WSPC = $$find(OUT_PWD, \\s)
+    !isEmpty(WSPC): \
+        error("QtWebEngine cannot be built in a path that contains whitespace characters.")
+    load(configure)
+    runConfigure()
 }
 
 !isEmpty(skipBuildReason) {
-- 
GitLab