That's great, I will try that. Thanks very much, Miklos
On 25 February 2015 at 23:32, J. Caleb Wherry <calebwhe...@gmail.com> wrote: > Miklos, > > I did a quick test and using the DOWNLOAD_COMMAND option to > ExternalProject_Add works nicely: > > ExternalProject_Add(sfml > PREFIX ${sfml_PREFIX} > DOWNLOAD_COMMAND git clone --depth 1 > https://github.com/LaurentGomila/SFML.git > INSTALL_DIR ${sfml_INSTALL_DIR} > CMAKE_ARGS ${sfml_CMAKE_ARGS} > ) > > I could not, however, get it to work along with specifying the > GIT_REPOSITORY option. I believe this is because using the DOWNLOAD_COMMAND > completely overrides all other download options. > > I think this is the best way to get what you want. I'm surprised no one > else has commented since cloning a git repo with submodules needs the > 'recursive' option to actually pull in the submodule code. It's a similar > problem you are facing with needing to pass in extra options to the > download executable. > > -Caleb > > On Wed, Feb 25, 2015 at 9:50 AM, Miklos Espak <m.es...@ucl.ac.uk> wrote: > >> Hi, >> >> is it possible to specify the --depth 1 argument in ExternalProject_Add >> for cloning projects from git? >> >> Cheers, >> Miklos >> >> >> -- >> >> 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://public.kitware.com/mailman/listinfo/cmake >> > > > > -- > J. Caleb Wherry > *Scientific Software Engineer* > > <http://www.calebwherry.com> > http://www.calebwherry.com > +1 (615) 708-5651 > calebwhe...@gmail.com > > -- > > 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://public.kitware.com/mailman/listinfo/cmake >
-- 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://public.kitware.com/mailman/listinfo/cmake