[CMake] ctest and git submodules

Marcus D. Hanwell marcus.hanwell at kitware.com
Wed Jan 12 13:15:31 EST 2011


On Wed, Jan 12, 2011 at 12:16 PM, Gerhard Gappmeier
<gerhard.gappmeier at ascolab.com> wrote:
> Hi,
>
> my project is stored in a git repo with submodules.
>
> I'm wondering if ctest is updating also the submodules when running
>
> ctest Nightly|Continuous etc.
>
> or just the main repo.
>
> I believe not, unless I have some other problems with my test script.
>
> I could do a manual "git pull && git submodule init && git submodule update"
>
> before running ctest, but then "ctest -D Continuous" will do nothing because
> it doesn't detect the change anymore.
>
> Has anybody working ctest with git submodules?
>
See this ParaView CTest script for an example of how we handle
submodules in ParaView right now. ctest_update will see changes in the
main repo, but not any of the submodules. The submodules are then
updated, and the build begins. Last time I looked there was no
automatic update of the submodules.

http://www.cdash.org/CDash/viewNotes.php?buildid=823021

Marcus


More information about the CMake mailing list