From bfe4377a0d36edcf0708eb140e458964d888becb Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Mon, 27 Oct 2025 16:58:22 +0100 Subject: [PATCH 22/48] AppKit and UIKit linkage for base --- build/cmake/lib/base/CMakeLists.txt | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/build/cmake/lib/base/CMakeLists.txt b/build/cmake/lib/base/CMakeLists.txt index a158c0eba9..97f748e506 100644 --- a/build/cmake/lib/base/CMakeLists.txt +++ b/build/cmake/lib/base/CMakeLists.txt @@ -60,12 +60,20 @@ if(APPLE) "-framework Security" PUBLIC "-framework CoreFoundation" - "-framework AppKit" ) + if(WXOSX_IPHONE) + wx_lib_link_libraries(wxbase + PUBLIC + "-framework UIKit" + ) + else() + wx_lib_link_libraries(wxbase + PUBLIC + "-framework AppKit" + ) + endif() if(WXOSX_COCOA) wx_lib_link_libraries(wxbase - PRIVATE - "-framework Security" PUBLIC "-framework Carbon" "-framework Cocoa" -- 2.24.3 (Apple Git-128)