Re: [CMake] ExternalProjectAdd and patch on Windows

2019-06-21 Thread Kris Thielemans
Thanks Cristian That works wonderfully! Kris From: Cristian Adam Sent: 20 June 2019 12:28 To: Kris Thielemans Cc: CMake Mail List Subject: Re: [CMake] ExternalProjectAdd and patch on Windows Hi, If the users have git installed, you could try find_program(git...), and then

Re: [CMake] ExternalProjectAdd and patch on Windows

2019-06-20 Thread Cristian Adam
Hi, If the users have git installed, you could try find_program(git...), and then "git apply", which should work to apply patches. Cheers, Cristian. On Thu, Jun 20, 2019 at 1:21 PM Kris Thielemans wrote: > Hi all > > > > I have a superbuild project where I need to patch a library (HDF5) after

[CMake] ExternalProjectAdd and patch on Windows

2019-06-20 Thread Kris Thielemans
Hi all I have a superbuild project where I need to patch a library (HDF5) after download. In Windows, there's no "patch" or "sed" command, and this has to run on other people's computer. I can almost achieve what I want in Powershell like so get-content ConfigureChecks.cmake | %{$_ -repla