qt module: fix missing sanity check for install_dir + install

Regression in commit 11f9638035. When
`install: true` the install_dir must be set. The CustomTarget
initializer no longer checks this for us, so we must include the check
ourselves.
pull/10233/head
Eli Schwartz 3 years ago committed by Jussi Pakkanen
parent 945252a3bb
commit 93ed7531c4
  1. 2
      mesonbuild/modules/qt.py

@ -546,6 +546,8 @@ class QtBaseModule(ExtensionModule):
if any(isinstance(s, (build.CustomTarget, build.CustomTargetIndex, build.GeneratedList)) for s in ts_files):
FeatureNew.single_use('qt.compile_translations: custom_target or generator for "ts_files" keyword argument',
'0.60.0', state.subproject, location=state.current_node)
if kwargs['install'] and not kwargs['install_dir']:
raise MesonException('qt.compile_translations: "install_dir" keyword argument must be set when "install" is true.')
qresource = kwargs['qresource']
if qresource:
if ts_files:

Loading…
Cancel
Save