Do not continue if syncqt fails.
If the user has set QTDIR to something other than the location of the qtbase build directory, syncqt will fail. This change prevents the build from continuing. Ideally, the system should ignore the user-set QTDIR value or give an appropriate error. Reviewed-by: Rohan McGovern
This commit is contained in:
parent
b4b100fb8f
commit
0056cc0ced
@ -26,7 +26,11 @@ exists($$_PRO_FILE_PWD_/sync.profile) {
|
||||
|
||||
message("Running syncqt for $$PRO_BASENAME in $$OUT_PWD")
|
||||
qtPrepareTool(QMAKE_SYNCQT, syncqt)
|
||||
system("$$QMAKE_SYNCQT $$QTFWD -outdir $$OUT_PWD $$_PRO_FILE_PWD_")
|
||||
system("$$QMAKE_SYNCQT $$QTFWD -outdir $$OUT_PWD $$_PRO_FILE_PWD_") {
|
||||
# success! Nothing to do
|
||||
} else {
|
||||
error("Failed to run: $$QMAKE_SYNCQT $$QTFWD -outdir $$OUT_PWD $$_PRO_FILE_PWD_")
|
||||
}
|
||||
unset(QTFWD)
|
||||
unset(PRO_BASENAME)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user