mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-26 09:21:06 +01:00
meson: Simplify check for freetype2 library and headers
This commit is contained in:
1 parent
40ec187dec
commit
33252ce576
1 file changed
+2
-3
+2
-3
@@ -72,9 +72,8 @@ if not get_option('freetype').disabled()
|
||||
freetype_dep = dependency('freetype2', required: false)
|
||||
|
||||
if not freetype_dep.found() and cpp.get_id() == 'msvc'
|
||||
if cpp.has_header('ft2build.h')
|
||||
freetype_dep = cpp.find_library('freetype', required: false)
|
||||
endif
|
||||
freetype_dep = cpp.find_library('freetype', required: false,
|
||||
has_headers: ['ft2build.h'], )
|
||||
endif
|
||||
|
||||
if not freetype_dep.found() and get_option('freetype').enabled()
|
||||
|
||||
Reference in new issue
Block a user