aboutsummaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorRechi <Rechi@users.noreply.github.com>2022-10-13 23:45:49 +0200
committerRechi <Rechi@users.noreply.github.com>2022-10-13 23:45:49 +0200
commit3ffdc532ff7de9415bde8d465940502a4a16be31 (patch)
tree88bb980404bd15d068533328a48db24dca34a5e2 /cmake
parentd7b251ffdaa77283c95e42c1b0655a672db93dc5 (diff)
[cmake] fix FindPackageHandleStandardArgs name mismatch
Diffstat (limited to 'cmake')
-rw-r--r--cmake/modules/buildtools/FindPatch.cmake5
1 files changed, 1 insertions, 4 deletions
diff --git a/cmake/modules/buildtools/FindPatch.cmake b/cmake/modules/buildtools/FindPatch.cmake
index 4fbf5a6dbd..ec6551f765 100644
--- a/cmake/modules/buildtools/FindPatch.cmake
+++ b/cmake/modules/buildtools/FindPatch.cmake
@@ -68,10 +68,7 @@ if(CMAKE_HOST_WIN32 AND NOT PATCH_EXE)
endif()
include(FindPackageHandleStandardArgs)
-
-set(FPHSA_NAME_MISMATCHED 1) # Suppress warnings, see https://cmake.org/cmake/help/v3.17/module/FindPackageHandleStandardArgs.html
-find_package_handle_standard_args(PATCH REQUIRED_VARS PATCH_EXE)
-unset(FPHSA_NAME_MISMATCHED)
+find_package_handle_standard_args(Patch REQUIRED_VARS PATCH_EXE)
if(PATCH_FOUND)
set(PATCH_EXECUTABLE "${PATCH_EXE}")