From e189126f1ae1d2fa2ad0f95ee2c4aa72c770a97b Mon Sep 17 00:00:00 2001 From: Alexandru Croitor Date: Wed, 27 May 2020 14:42:35 +0200 Subject: CMake: Use -fapplication-extension when building Qt libraries on macOS MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Needed to avoid linker warnings transformed into errors, when linking QtWebEngine with qmake mixing. ld: warning: linking against a dylib which is not safe for use in application extensions: The flag is added to libraries and plugins, unless opted out. CMake equivalent of 944110089d4cb1c229dba422989e154db65a67fd Task-number: QTBUG-83929 Task-number: QTBUG-75666 Change-Id: I3e9acca4712c9a266bf54c6e35e2fd2c0096692b Reviewed-by: Tor Arne Vestbø --- src/plugins/platforms/xcb/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/plugins/platforms/xcb/CMakeLists.txt') diff --git a/src/plugins/platforms/xcb/CMakeLists.txt b/src/plugins/platforms/xcb/CMakeLists.txt index 278ef82cb8..1d481832f1 100644 --- a/src/plugins/platforms/xcb/CMakeLists.txt +++ b/src/plugins/platforms/xcb/CMakeLists.txt @@ -64,6 +64,10 @@ qt_add_module(XcbQpa XKB::XKB ) +# special case begin +qt_disable_apple_app_extension_api_only(XcbQpa) +# special case end + ## Scopes: ##################################################################### -- cgit v1.2.3