From 59f397631b921cd9d65f7cd8aea158cd9c39e71e Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Tue, 6 Sep 2016 11:54:18 +0300 Subject: [PATCH] Stop building if PWD or OUT_PWD contains space. --HG-- branch : develop --- Valentina.pro | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Valentina.pro b/Valentina.pro index 88a4b619e..2064c3d5f 100644 --- a/Valentina.pro +++ b/Valentina.pro @@ -6,6 +6,13 @@ include(common.pri) error("Use at least Qt 5.0.0.") } +#These checks need because we can quote all paths that contain space. +LIST = $$split(PWD,' ') +count(LIST, 1, >): error("The build will fail. Path '$${PWD}' contains space!!!") + +LIST = $$split(OUT_PWD,' ') +count(LIST, 1, >): error("The build will fail. Path '$${OUT_PWD}' contains space!!!") + unix { *-g++ { GCC_VERSION = $$system("g++ -dumpversion")