From 39a18aad07fed4bc62b0fe7fc5b151631722d466 Mon Sep 17 00:00:00 2001 From: Ferenc Gerlits Date: Wed, 21 Jul 2021 11:11:36 +0200 Subject: FindPatch: Fix typo in find_program call There is no `NAME` option. It should be `NAMES`. The call worked with `NAME` only due to old `find_program` signature compatibility. After this, the `find_program` call works even with PATHS removed (on non-Windows systems where this PATHS is not needed). --- Modules/FindPatch.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/FindPatch.cmake b/Modules/FindPatch.cmake index 4108651..f4fe4a6 100644 --- a/Modules/FindPatch.cmake +++ b/Modules/FindPatch.cmake @@ -43,7 +43,7 @@ endif() # First search the PATH find_program(Patch_EXECUTABLE - NAME patch + NAMES patch PATHS ${_patch_path} DOC ${_doc} ) -- cgit v0.12