Here is a working example: ## -- Update git submodules if (EXISTS "${CTEST_SOURCE_DIRECTORY}/.gitmodules") message (" -- Update git submodules ${MODEL} - ${CTEST_BUILD_NAME} --") execute_process (COMMAND ${GIT_EXECUTABLE} submodule update --init --recursive WORKING_DIRECTORY ${CTEST_SOURCE_DIRECTORY}) endif ()
Best Regards Am 26.02.2013 um 20:16 schrieb NoRulez <noru...@me.com>: > Hi, > > I don't think so, you could check for a .git directory and then call > > git submodule update --init --recursive > > Best Regards > > Am 26.02.2013 um 18:34 schrieb Clinton Stimpson <clin...@elemtech.com>: > >> >> Is there anything special I need to do with ctest so that the ctest_update() >> will recognize git submodules and do any init/update of those for me? I >> assumed it would be automatic, but that doesn't seem to be the case. >> >> -- >> Clinton Stimpson >> Elemental Technologies, Inc >> Computational Simulation Software, LLC >> www.csimsoft.com >> -- >> >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at >> http://www.kitware.com/opensource/opensource.html >> >> Please keep messages on-topic and check the CMake FAQ at: >> http://www.cmake.org/Wiki/CMake_FAQ >> >> Follow this link to subscribe/unsubscribe: >> http://www.cmake.org/mailman/listinfo/cmake > -- > > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the CMake FAQ at: > http://www.cmake.org/Wiki/CMake_FAQ > > Follow this link to subscribe/unsubscribe: > http://www.cmake.org/mailman/listinfo/cmake -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake