[CMake] ctest & git submodules

NoRulez norulez at me.com
Thu Feb 28 02:38:39 EST 2013


But if I set the option:
set(CTEST_GIT_UPDATE_OPTIONS "--tags")

Then I get the following error message:
Update command failed: "C:/Program Files/Git/cmd/git.cmd" "fetch" "--tags"

Did I miss something?

Thanks in advance
Best Regards

Am 27.02.2013 um 14:01 schrieb Brad King <brad.king at kitware.com>:

> 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