From bdcbe93911af42e27b8cb1a56024492a31b8c7ea Mon Sep 17 00:00:00 2001 From: op Date: Sun, 31 Jul 2022 20:50:40 +0000 Subject: [PATCH] games/gzdoom: don't pick up clang-format if found at configure-time the bundled `discordrpc' lib tries to find clang-format and uses it. spotted by naddy@ --- .../patch-libraries_discordrpc_CMakeLists_txt | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 games/gzdoom/patches/patch-libraries_discordrpc_CMakeLists_txt diff --git a/games/gzdoom/patches/patch-libraries_discordrpc_CMakeLists_txt b/games/gzdoom/patches/patch-libraries_discordrpc_CMakeLists_txt new file mode 100644 index 00000000000..89f07cd487c --- /dev/null +++ b/games/gzdoom/patches/patch-libraries_discordrpc_CMakeLists_txt @@ -0,0 +1,15 @@ +don't pick up clang-format is present + +Index: libraries/discordrpc/CMakeLists.txt +--- libraries/discordrpc/CMakeLists.txt.orig ++++ libraries/discordrpc/CMakeLists.txt +@@ -10,7 +10,8 @@ file(GLOB_RECURSE ALL_SOURCE_FILES + ) + + # Set CLANG_FORMAT_SUFFIX if you are using custom clang-format, e.g. clang-format-5.0 +-find_program(CLANG_FORMAT_CMD clang-format${CLANG_FORMAT_SUFFIX}) ++#find_program(CLANG_FORMAT_CMD clang-format${CLANG_FORMAT_SUFFIX}) ++set(CLANG_FORMAT_CMD, FALSE) + + if (CLANG_FORMAT_CMD) + add_custom_target(