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()