Skip to content

Commit

Permalink
Fixed Apple Silicon build
Browse files Browse the repository at this point in the history
  • Loading branch information
Moresteck committed Apr 13, 2024
1 parent 66a4297 commit f28a4a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ elseif (APPLE)
set(CMAKE_APPLE_SILICON_PROCESSOR "arm64")

if(CMAKE_APPLE_SILICON_PROCESSOR STREQUAL "arm64")
target_link_libraries(Core PUBLIC ${CMAKE_SOURCE_DIR}/lib/discord_game_sdk/x86_64/discord_game_sdk.dylib)
target_link_libraries(Core PUBLIC ${CMAKE_SOURCE_DIR}/lib/discord_game_sdk/aarch64/discord_game_sdk.dylib)
elseif(CMAKE_APPLE_SILICON_PROCESSOR STREQUAL "x86_64")
target_link_libraries(Core PUBLIC ${CMAKE_SOURCE_DIR}/lib/discord_game_sdk/x86_64/discord_game_sdk.dylib)
endif()
Expand Down

0 comments on commit f28a4a0

Please sign in to comment.