Gate macOS Cocoa framework propagation to the Desktop platform
This commit is contained in:
parent
7d8f356699
commit
58fad284f5
1 changed files with 3 additions and 2 deletions
|
|
@ -117,8 +117,9 @@ if (NOT BUILD_SHARED_LIBS)
|
||||||
|
|
||||||
# Bundled GLFW links its Cocoa backend frameworks privately, so they
|
# Bundled GLFW links its Cocoa backend frameworks privately, so they
|
||||||
# must be propagated to consumers of the static library, whose final
|
# must be propagated to consumers of the static library, whose final
|
||||||
# link line would otherwise miss them.
|
# link line would otherwise miss them. Only the Desktop platform uses
|
||||||
if (APPLE)
|
# bundled GLFW; other platforms (e.g. Memory) have no Cocoa/GLFW symbols.
|
||||||
|
if (APPLE AND PLATFORM STREQUAL "Desktop")
|
||||||
find_library(COCOA_FRAMEWORK Cocoa)
|
find_library(COCOA_FRAMEWORK Cocoa)
|
||||||
find_library(IOKIT_FRAMEWORK IOKit)
|
find_library(IOKIT_FRAMEWORK IOKit)
|
||||||
find_library(QUARTZCORE_FRAMEWORK QuartzCore)
|
find_library(QUARTZCORE_FRAMEWORK QuartzCore)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue