[CMake] ctest & git submodules
Brad King
brad.king at kitware.com
Wed Feb 27 08:01:39 EST 2013
On 02/27/2013 12:36 AM, NoRulez wrote:
> I think for the --tags option it is the same, isn't it?
>
> How can I set such option for the checkout/update command?
The --tags option belongs to "git fetch" and extra flags can
be added for that by setting CTEST_GIT_UPDATE_OPTIONS before
calling ctest_update. Try:
set(CTEST_GIT_UPDATE_OPTIONS "--tags")
...
ctest_update()
Alternatively one may configure the Git repo with
git config remote.origin.tagopt "--tags"
so that "git fetch" does it automatically.
-Brad
More information about the CMake
mailing list