Skip to content

Commit

Permalink
Fix ARM64 compilation on MSVC
Browse files Browse the repository at this point in the history
  • Loading branch information
past-due authored and p0358 committed Nov 2, 2023
1 parent d493d3c commit af53eda
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ if(WIN32)
/wd4946 # reinterpret_cast used between related classes
/wd5027 # move assignment operator was implicitly defined as deleted
)
if(CMAKE_VS_PLATFORM_NAME MATCHES "^[Aa][Rr][Mm]64$")
target_compile_definitions(discord-rpc PRIVATE "RAPIDJSON_ENDIAN=0") # RAPIDJSON_LITTLEENDIAN
endif()
endif(MSVC)
target_link_libraries(discord-rpc PRIVATE psapi advapi32)
endif(WIN32)
Expand Down

0 comments on commit af53eda

Please sign in to comment.