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 authored and Brad King committed 2021-07-21 10:50:05 -04:00
1 parent dee0b88e77
commit 39a18aad07
1 file changed
+1 -1
+1 -1
View File
@@ -43,7 +43,7 @@ endif()
# First search the PATH
find_program(Patch_EXECUTABLE
NAME patch
NAMES patch
PATHS ${_patch_path}
DOC ${_doc}
)