Only add the UniformTypeIdentifiers framework if we're building the dialog subsystem
This framework isn't available on older SDKsmain
parent
18c8af6e48
commit
c10a3df552
|
@ -2425,9 +2425,6 @@ elseif(APPLE)
|
||||||
sdl_link_dependency(core_haptics LINK_OPTIONS "-Wl,-framework,CoreHaptics")
|
sdl_link_dependency(core_haptics LINK_OPTIONS "-Wl,-framework,CoreHaptics")
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
if(SDL_FRAMEWORK_UTTYPES)
|
|
||||||
sdl_link_dependency(uniformtypeidentifiers LINK_OPTIONS "-Wl,-weak_framework,UniformTypeIdentifiers")
|
|
||||||
endif()
|
|
||||||
|
|
||||||
CheckPTHREAD()
|
CheckPTHREAD()
|
||||||
|
|
||||||
|
@ -2889,6 +2886,7 @@ if (SDL_DIALOG)
|
||||||
set(HAVE_SDL_DIALOG TRUE)
|
set(HAVE_SDL_DIALOG TRUE)
|
||||||
elseif(APPLE)
|
elseif(APPLE)
|
||||||
sdl_sources(${SDL3_SOURCE_DIR}/src/dialog/cocoa/SDL_cocoadialog.m)
|
sdl_sources(${SDL3_SOURCE_DIR}/src/dialog/cocoa/SDL_cocoadialog.m)
|
||||||
|
sdl_link_dependency(uniformtypeidentifiers LINK_OPTIONS "-Wl,-weak_framework,UniformTypeIdentifiers")
|
||||||
set(HAVE_SDL_DIALOG TRUE)
|
set(HAVE_SDL_DIALOG TRUE)
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
Loading…
Reference in New Issue