Stop building if PWD or OUT_PWD contains space.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2016-09-06 11:54:18 +03:00
parent 4c8210afc2
commit 59f397631b

View File

@ -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")