refuse to build examples inside the qt source tree stand-alone
doing so is somewhat likely to cause follow-up issues, as it turns the source tree into a build tree as a side effect. note that this change does not affect building examples inside an install tree, even if doing that is still ugly. Change-Id: I386bf2ab959269f55553c70b7551dd9afec2bcba Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
This commit is contained in:
parent
1da25fe85a
commit
d64abf8166
@ -26,9 +26,15 @@ defineTest(addInstallFiles) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
probase = $$relative_path($$_PRO_FILE_PWD_, $$dirname(_QMAKE_CONF_)/examples)
|
probase = $$relative_path($$_PRO_FILE_PWD_, $$dirname(_QMAKE_CONF_)/examples)
|
||||||
isEmpty(probase)|contains(probase, ^\\..*)|isEmpty(_QMAKE_CACHE_): \
|
isEmpty(probase)|contains(probase, ^\\..*): \
|
||||||
return()
|
return()
|
||||||
|
|
||||||
|
isEmpty(_QMAKE_CACHE_) {
|
||||||
|
!equals(OUT_PWD, $$_PRO_FILE_PWD_): \
|
||||||
|
return()
|
||||||
|
error("You cannot build examples inside the Qt source tree, except as part of a proper Qt build.")
|
||||||
|
}
|
||||||
|
|
||||||
contains(TEMPLATE, "vc.*"): \
|
contains(TEMPLATE, "vc.*"): \
|
||||||
return()
|
return()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user