Fix Apple platform target link surface
This commit is contained in:
@@ -277,6 +277,27 @@ target_link_libraries(pp_platform_apple
|
||||
pp_project_options
|
||||
PRIVATE
|
||||
pp_project_warnings)
|
||||
if(TARGET pp_renderer_gl)
|
||||
target_link_libraries(pp_platform_apple PUBLIC pp_renderer_gl)
|
||||
endif()
|
||||
if(APPLE)
|
||||
if(CMAKE_SYSTEM_NAME STREQUAL "iOS")
|
||||
target_link_libraries(pp_platform_apple
|
||||
PUBLIC
|
||||
"-framework Foundation"
|
||||
"-framework AVFoundation"
|
||||
"-framework UIKit"
|
||||
"-framework GLKit"
|
||||
"-framework OpenGLES")
|
||||
else()
|
||||
target_link_libraries(pp_platform_apple
|
||||
PUBLIC
|
||||
"-framework Foundation"
|
||||
"-framework AVFoundation"
|
||||
"-framework AppKit"
|
||||
"-framework OpenGL")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
add_library(pp_platform_linux STATIC
|
||||
${PP_PLATFORM_LINUX_SOURCES})
|
||||
|
||||
Reference in New Issue
Block a user