aboutsummaryrefslogtreecommitdiff
path: root/cmake/scripts/windows/tools/patch.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/scripts/windows/tools/patch.cmake')
-rw-r--r--cmake/scripts/windows/tools/patch.cmake4
1 files changed, 3 insertions, 1 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()