From a4cd17cce5c551f640447cb8c95c973bc431732a Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Fri, 3 Jan 2025 16:17:16 -0800 Subject: [PATCH] Fixed building on macOS with the dialog subsystem disabled --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5c4f9cbd41..9951da816c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2398,6 +2398,7 @@ elseif(APPLE) endif() if(SDL_FRAMEWORK_COCOA) sdl_link_dependency(cocoa LIBS "$" PKG_CONFIG_LINK_OPTIONS "-Wl,-framework,Cocoa") + sdl_link_dependency(uniformtypeidentifiers LIBS "$" PKG_CONFIG_LINK_OPTIONS "-Wl,-weak_framework,UniformTypeIdentifiers") endif() if(SDL_FRAMEWORK_IOKIT) sdl_link_dependency(iokit LIBS "$" PKG_CONFIG_LINK_OPTIONS "-Wl,-framework,IOKit") @@ -2940,7 +2941,6 @@ if (SDL_DIALOG) set(HAVE_SDL_DIALOG TRUE) elseif(MACOS) sdl_sources(${SDL3_SOURCE_DIR}/src/dialog/cocoa/SDL_cocoadialog.m) - sdl_link_dependency(uniformtypeidentifiers LIBS "$" PKG_CONFIG_LINK_OPTIONS "-Wl,-weak_framework,UniformTypeIdentifiers") set(HAVE_SDL_DIALOG TRUE) endif() endif()