cmake dependency: Fix accidental use of T.Optional in warning message

09b53c534f seems to have done an over-eager search-replace.
pull/13086/merge
Andres Freund 5 months ago committed by Jussi Pakkanen
parent 814e581537
commit 9a60deff0a
  1. 2
      mesonbuild/dependencies/cmake.py

@ -525,7 +525,7 @@ class CMakeDependency(ExternalDependency):
for i, required in modules:
if i not in self.traceparser.targets:
if not required:
mlog.warning('CMake: T.Optional module', mlog.bold(self._original_module_name(i)), 'for', mlog.bold(name), 'was not found')
mlog.warning('CMake: Optional module', mlog.bold(self._original_module_name(i)), 'for', mlog.bold(name), 'was not found')
continue
raise self._gen_exception('CMake: invalid module {} for {}.\n'
'Try to explicitly specify one or more targets with the "modules" property.\n'

Loading…
Cancel
Save