mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-02 03:39:43 -06:00
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:
committed by
Brad King
parent
dee0b88e77
commit
39a18aad07
@@ -43,7 +43,7 @@ endif()
|
||||
|
||||
# First search the PATH
|
||||
find_program(Patch_EXECUTABLE
|
||||
NAME patch
|
||||
NAMES patch
|
||||
PATHS ${_patch_path}
|
||||
DOC ${_doc}
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user