[CMake] CTest GIT support does not properly update recursive submodules
Johan Björk
phb at spotify.com
Sat Feb 5 18:50:30 EST 2011
Hi everyone,
It seems the submodule support in CTest does not iterate into submodules.
I'm not sure if the reason is an overlook, or that some older versions of
git maybe didn't support the --recursive command. Is the proper way to add a
CTEST_GIT_SUBMODULE_UPDATE_COMMAND, or is the following fix good enough?
The fix is extremely simple, in cmCTestGIT.cxx:266
char const* git_submodule[] = {git, "submodule", "update", 0};
modify to
char const* git_submodule[] = {git, "submodule", "update", "--recursive",
0};
/Johan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20110206/963b9f31/attachment.htm>
More information about the CMake
mailing list