From a9c5414b86126af955d1d0bbf8a34d16a2f443b7 Mon Sep 17 00:00:00 2001 From: Dudemanguy Date: Tue, 31 Jan 2023 10:12:44 -0600 Subject: meson: check macos touchbar with has_header --- meson.build | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'meson.build') diff --git a/meson.build b/meson.build index 6d8a10cdf5..753cd94d94 100644 --- a/meson.build +++ b/meson.build @@ -1544,8 +1544,8 @@ if swift.allowed() endif macos_touchbar = get_option('macos-touchbar').require( - features['cocoa'] and cc.compiles(files(join_paths(fragments, 'touchbar.m')), name: 'macos-touchbar check'), - error_message: 'Either cocoa could not be found or the macos-touchbar check failed!', + features['cocoa'] and cc.has_header('AppKit/NSTouchBar.h'), + error_message: 'Either cocoa could not be found or AppKit/NSTouchBar.h could not be found!', ) features += {'macos-touchbar': macos_touchbar.allowed()} if features['macos-touchbar'] -- cgit v1.2.3