Skip to content

FindPatch: Fix typo in find_program call

Ferenc Gerlits requested to merge fgerlits/cmake:fix-typo-in-find-patch into master

FindPatch.cmake contained a typo: in find_program, the parameter is NAMES, not NAME.

For some reason (probably undocumented backward compatibility), it worked, but it stopped working when I removed the optional PATHS parameter in the next line.

After the fix, FindPatch works even with PATHS removed (on non-Windows systems where this PATHS is not needed).

Topic-rename: FindPatch-typo

Edited by Brad King

Merge request reports