diff --git a/meson.build b/meson.build index 0a0e2cf27..1e14b3286 100644 --- a/meson.build +++ b/meson.build @@ -198,8 +198,15 @@ if png_dep.found() endif endif +# Don't build fontconfig as a subproject on Windows unless +# explicitly requested +fontconfig_option = get_option('fontconfig') +if host_machine.system() == 'windows' and not fontconfig_option.enabled() + fontconfig_option = false +endif + fontconfig_dep = dependency('fontconfig', - required: get_option('fontconfig'), + required: fontconfig_option, version: fontconfig_required_version, fallback: ['fontconfig', 'fontconfig_dep'], )