summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFerenc Gerlits <fgerlits@gmail.com>2021-07-21 11:11:36 +0200
committerBrad King <brad.king@kitware.com>2021-07-21 10:50:05 -0400
commit39a18aad07fed4bc62b0fe7fc5b151631722d466 (patch)
treef645cd5058a00e81952661f76d9ce19638b87569
parentdee0b88e770282909716967b9d3f4e626827e4ae (diff)
downloadcmake-39a18aad07fed4bc62b0fe7fc5b151631722d466.tar.gz
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).
-rw-r--r--Modules/FindPatch.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/FindPatch.cmake b/Modules/FindPatch.cmake
index 41086517d9..f4fe4a6149 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}
)