From f348d1b2bbcc5d2f6838ae976f7d2d6ca1636a7d Mon Sep 17 00:00:00 2001 From: Alwin Esch Date: Mon, 27 Jan 2020 14:11:16 +0100 Subject: [cmake] fix Windows OS patch check of own installed --- cmake/scripts/windows/tools/patch.cmake | 4 +++- cmake/scripts/windowsstore/tools/patch.cmake | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/cmake/scripts/windows/tools/patch.cmake b/cmake/scripts/windows/tools/patch.cmake index d75cb6ec5d..2ed23127ac 100644 --- a/cmake/scripts/windows/tools/patch.cmake +++ b/cmake/scripts/windows/tools/patch.cmake @@ -70,7 +70,9 @@ else() endif() # make sure that cmake can find the copied patch.exe - find_program(PATCH_FOUND NAMES patch patch.exe) + find_program(PATCH_EXECUTABLE NAMES patch patch.exe) + find_package_handle_standard_args(Patch + REQUIRED_VARS PATCH_EXECUTABLE) if(NOT PATCH_FOUND) message(FATAL_ERROR "ERROR installing patch utility from ${PATCH_BINARY_PATH} to ${ADDON_DEPENDS_PATH}/bin") endif() diff --git a/cmake/scripts/windowsstore/tools/patch.cmake b/cmake/scripts/windowsstore/tools/patch.cmake index d75cb6ec5d..2ed23127ac 100644 --- a/cmake/scripts/windowsstore/tools/patch.cmake +++ b/cmake/scripts/windowsstore/tools/patch.cmake @@ -70,7 +70,9 @@ else() endif() # make sure that cmake can find the copied patch.exe - find_program(PATCH_FOUND NAMES patch patch.exe) + find_program(PATCH_EXECUTABLE NAMES patch patch.exe) + find_package_handle_standard_args(Patch + REQUIRED_VARS PATCH_EXECUTABLE) if(NOT PATCH_FOUND) message(FATAL_ERROR "ERROR installing patch utility from ${PATCH_BINARY_PATH} to ${ADDON_DEPENDS_PATH}/bin") endif() -- cgit v1.2.3