diff options
author | Alwin Esch <alwin.esch@web.de> | 2020-01-27 14:11:16 +0100 |
---|---|---|
committer | Alwin Esch <alwin.esch@web.de> | 2020-01-27 14:11:16 +0100 |
commit | f348d1b2bbcc5d2f6838ae976f7d2d6ca1636a7d (patch) | |
tree | 0e2e4898be9608fea6e7f928ce811fb8b49f731a /cmake | |
parent | 4a590f583df1c675a8d92b5a30af5c13e601d1ad (diff) |
[cmake] fix Windows OS patch check of own installed
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/scripts/windows/tools/patch.cmake | 4 | ||||
-rw-r--r-- | 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() |