[CMake] external project add, clone without history

2015-02-25 Thread Miklos Espak
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

Re: [CMake] external project add, clone without history

2015-02-25 Thread J. Caleb Wherry
Actually, scratch my last comment and submodules. There looks to be a GIT_SUBMODULES option that says if not given, all submodules will be updated. I am assuming that means the CMake passes in the --recursive option automatically when cloning. Haven't tested it yet though... -Caleb On Wed, Feb

Re: [CMake] external project add, clone without history

2015-02-25 Thread J. Caleb Wherry
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

Re: [CMake] external project add, clone without history

2015-02-25 Thread Miklos Espak
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}