Mercurial > hg > orthanc
changeset 2111:64d0224595cc
more generic path
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 27 Oct 2016 11:20:12 +0200 |
parents | 5b818f677dd6 |
children | 82461d1e8e17 |
files | Resources/CMake/DownloadPackage.cmake |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/Resources/CMake/DownloadPackage.cmake Wed Oct 26 15:36:39 2016 +0200 +++ b/Resources/CMake/DownloadPackage.cmake Thu Oct 27 11:20:12 2016 +0200 @@ -16,7 +16,11 @@ ## if ("${CMAKE_HOST_SYSTEM_NAME}" STREQUAL "Windows") - set(PATCH_EXECUTABLE ${CMAKE_SOURCE_DIR}/Resources/ThirdParty/patch/patch.exe) + set(PATCH_EXECUTABLE ${CMAKE_CURRENT_LIST_DIR}/../ThirdParty/patch/patch.exe) + if (NOT EXISTS ${PATCH_EXECUTABLE}) + message(FATAL_ERROR "Unable to find the patch.exe tool that is shipped with Orthanc") + endif() + else () find_program(PATCH_EXECUTABLE patch) if (${PATCH_EXECUTABLE} MATCHES "PATCH_EXECUTABLE-NOTFOUND")