get rid of the QTDIR path detection warning
parent
96bc8e0422
commit
20c5a58cf4
|
@ -203,9 +203,9 @@ def _detect(env):
|
||||||
moc = env.WhereIs('moc-qt4') or env.WhereIs('moc4') or env.WhereIs('moc')
|
moc = env.WhereIs('moc-qt4') or env.WhereIs('moc4') or env.WhereIs('moc')
|
||||||
if moc:
|
if moc:
|
||||||
QTDIR = os.path.dirname(os.path.dirname(moc))
|
QTDIR = os.path.dirname(os.path.dirname(moc))
|
||||||
SCons.Warnings.warn(
|
#SCons.Warnings.warn(
|
||||||
QtdirNotFound,
|
# QtdirNotFound,
|
||||||
"QTDIR variable is not defined, using moc executable as a hint (QTDIR=%s)" % QTDIR)
|
# "QTDIR variable is not defined, using moc executable as a hint (QTDIR=%s)" % QTDIR)
|
||||||
return QTDIR
|
return QTDIR
|
||||||
|
|
||||||
raise SCons.Errors.StopError(
|
raise SCons.Errors.StopError(
|
||||||
|
|
Loading…
Reference in New Issue