File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -49,9 +49,9 @@ if(NOT ( DEFINED "USE_SYSTEM_${externalProjName}" AND "${USE_SYSTEM_${externalPr
4949 set (HDF5_BUILD_HL_LIB ${${proj} _USE_CUDA})
5050
5151 if (WIN32 AND (${HDF5_TAG} STREQUAL hdf5-1_8_12))
52- find_program (GIT "git" )
52+ find_program (GIT "git" REQUIRED )
5353 set (PATCHFILE "${CMAKE_SOURCE_DIR } /patches/hdf5-${HDF5_DOWNLOAD_VERSION} .patch" )
54- set (PATCH_COMMAND git apply -v --ignore-space-change --ignore-whitespace ${PATCHFILE} )
54+ set (PATCH_COMMAND " ${GIT} " apply -v --ignore-space-change --ignore-whitespace " ${PATCHFILE} " )
5555 else ()
5656 #make it empty, just to be sure
5757 set (PATCH_COMMAND )
Original file line number Diff line number Diff line change @@ -58,17 +58,11 @@ if(NOT ( DEFINED "USE_SYSTEM_${externalProjName}" AND "${USE_SYSTEM_${externalPr
5858 endif ()
5959 endif ()
6060
61- if (${${proj} _TAG} STREQUAL "v1.13.7" AND DEFINED PATCH_ISMRMRD)
61+ if (DEFINED PATCH_ISMRMRD AND (${${proj} _TAG} MATCHES "v1.13.7|v1.15.0" ))
62+ find_program (GIT "git" REQUIRED )
6263 message (STATUS "patching ISMRMRD to fix cURL linking error" )
63- find_program (GIT "git" )
64- set (PATCHFILE "${CMAKE_SOURCE_DIR } /patches/ismrmrd-1.37.7.patch" )
65- set (PATCH_COMMAND git apply -v --ignore-space-change --ignore-whitespace ${PATCHFILE} )
66- endif ()
67- if (${${proj} _TAG} STREQUAL "v1.15.0" AND DEFINED PATCH_ISMRMRD)
68- message (STATUS "patching ISMRMRD to fix cURL linking error" )
69- find_program (GIT "git" )
70- set (PATCHFILE "${CMAKE_SOURCE_DIR } /patches/ismrmrd-1.15.0.patch" )
71- set (PATCH_COMMAND git apply -v --ignore-space-change --ignore-whitespace ${PATCHFILE} )
64+ set (PATCHFILE "${CMAKE_SOURCE_DIR } /patches/ismrmrd-${${proj} _TAG}.patch" )
65+ set (PATCH_COMMAND "${GIT} " apply -v --ignore-space-change --ignore-whitespace "${PATCHFILE} " )
7266 endif ()
7367
7468 ExternalProject_Add (${proj}
File renamed without changes.
File renamed without changes.
You can’t perform that action at this time.
0 commit comments