Browse Source

CMake: Use FindPatch

CMake's built-in FindPatch will look in the Git installation directory
on Windows, eliminating the need for Windows users to modify PATH.

See https://github.com/Kitware/CMake/blob/master/Modules/FindPatch.cmake
pull/5323/head
Gleb Mazovetskiy 4 years ago
parent
commit
6be4f7a321
  1. 4
      3rdParty/discord/CMakeLists.txt

4
3rdParty/discord/CMakeLists.txt vendored

@ -1,10 +1,12 @@
include(functions/FetchContent_MakeAvailableExcludeFromAll)
include(FetchContent)
find_package(Patch REQUIRED)
FetchContent_Declare(discordsrc
URL https://dl-game-sdk.discordapp.net/2.5.6/discord_game_sdk.zip
URL_HASH MD5=f86f15957cc9fbf04e3db10462027d58
PATCH_COMMAND patch -p0 < "${CMAKE_CURRENT_LIST_DIR}/fix-types-h.patch"
PATCH_COMMAND "${Patch_EXECUTABLE}" -p0 -N < "${CMAKE_CURRENT_LIST_DIR}/fix-types-h.patch" || true
)
FetchContent_MakeAvailableExcludeFromAll(discordsrc)

Loading…
Cancel
Save