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).
This commit is contained in:
Ferenc Gerlits
2021-07-21 11:11:36 +02:00
committed by Brad King
parent dee0b88e77
commit 39a18aad07

View File

@@ -43,7 +43,7 @@ endif()
# First search the PATH
find_program(Patch_EXECUTABLE
NAME patch
NAMES patch
PATHS ${_patch_path}
DOC ${_doc}
)