FindPatch

From Get docs
Cmake/docs/3.21/module/findpatch


FindPatch

New in version 3.10.


The module defines the following variables:

Patch_EXECUTABLE
Path to patch command-line executable.
Patch_FOUND
True if the patch command-line executable was found.

The following IMPORTED targets are also defined:

Patch::patch
The command-line executable.

Example usage:

find_package(Patch)
if(Patch_FOUND)
  message("Patch found: ${Patch_EXECUTABLE}")
endif()

© 2000–2021 Kitware, Inc. and Contributors
Licensed under the BSD 3-clause License.
https://cmake.org/cmake/help/v3.21/module/FindPatch.html