Skip to content

Commit

Permalink
On macOS/iOS, use apple.mm, macos.mm and/os ios.mm
Browse files Browse the repository at this point in the history
Fixes #2068
  • Loading branch information
ryandesign committed May 10, 2024
1 parent 2c23b16 commit e261062
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -305,13 +305,27 @@ target_link_libraries(love_common PUBLIC

if (APPLE)
target_sources(love_common PRIVATE
src/common/macos.mm
src/common/apple.mm
)
target_link_libraries(love_common PUBLIC
objc
"-framework CoreFoundation"
"-framework AppKit"
)
if(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
target_sources(love_common PRIVATE
src/common/macos.mm
)
target_link_libraries(love_common PUBLIC
"-framework AppKit"
)
else()
target_sources(love_common PRIVATE
src/common/ios.mm
)
target_link_libraries(love_common PUBLIC
"-framework UIKit"
)
endif()
endif()

#
Expand Down

0 comments on commit e261062

Please sign in to comment.