2014/1/12 Pau Garcia i Quiles <[email protected]>: > > > > On Sun, Jan 12, 2014 at 1:39 AM, Rob McDonald <[email protected]> > wrote: >> >> Where does CMake get its patch implementation? > > > It doesn't. It would be great if CMake implemented a "cmake -E patch". > >> >> >> >> I'm using a patch step with ExternalProject_Add on Windows (and other >> platforms). >> > > I am downloading the patch binary from GNUWin32 as a pre-step on Windows. > Take a look at winstng: > > https://elpauer.assembla.com/code/winstng/git/nodes/master/cmake/CMakeLists.txt > > Problem is patch from GNUWin32 does not support Unix line endings (it will > crash), therefore I am forced to use Windows line endings in every patch > (unix2dos is your friend).
It seems like tortoiseMerge may apply patch as well: http://stackoverflow.com/questions/517257/how-do-i-apply-a-diff-patch-on-windows http://tortoisesvn.net/docs/nightly/TortoiseMerge_en/tme-automation.html Stackoverflow refers to pure python implementation of patch as well: https://code.google.com/p/python-patch/ I did never tried neither of those two myself though. -- Erk L'élection n'est pas la démocratie -- http://www.le-message.org -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
