FindPatch

在版本 3.10 中新增。

此模組定義了以下變數

Patch_EXECUTABLE

patch 命令列執行檔的路徑。

Patch_FOUND

如果找到 patch 命令列執行檔,則為 True。

也定義了以下IMPORTED目標

Patch::patch

命令列執行檔。

範例用法

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