diff options
author | Ferenc Gerlits <fgerlits@gmail.com> | 2021-07-21 09:11:36 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-07-21 14:50:05 (GMT) |
commit | 39a18aad07fed4bc62b0fe7fc5b151631722d466 (patch) | |
tree | f645cd5058a00e81952661f76d9ce19638b87569 /Modules/FindPatch.cmake | |
parent | dee0b88e770282909716967b9d3f4e626827e4ae (diff) | |
download | CMake-39a18aad07fed4bc62b0fe7fc5b151631722d466.zip CMake-39a18aad07fed4bc62b0fe7fc5b151631722d466.tar.gz CMake-39a18aad07fed4bc62b0fe7fc5b151631722d466.tar.bz2 |
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).
Diffstat (limited to 'Modules/FindPatch.cmake')
-rw-r--r-- | Modules/FindPatch.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
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} ) |