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
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}
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 25
That's great, I will try that.
Thanks very much,
Miklos
On 25 February 2015 at 23:32, J. Caleb Wherry 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