Thank you very much.

The goal is to have a nightly/continuous build with the tagged version number.

Without the "--tags" option it is only working if we push the changes after 
tagging.

With the "--tags" option it is now also possible to move/overwrite tags which 
gets then updated.

In the projects CMakeLists.txt file we get the current tag/version with "git 
describe --tags"

Maybe there would be alternatives but currently this is working fine. But we 
are open for suggestions.

Best Regards

Am 28.02.2013 um 17:38 schrieb Brad King <[email protected]>:

> On 02/28/2013 11:11 AM, NoRulez wrote:
>> I've attached the two log files, can you take a look on it?
> 
> After running "git fetch" CMake reads .git/FETCH_HEAD to determine
> what branch is intended for merge (just as pull does).  This is the
> same as "git pull --tags" failing.  You need to specify the remote
> and branch explicitly to use pull with --tags:
> 
> set(CTEST_GIT_UPDATE_OPTIONS "--tags origin master")
> 
> CMake cannot add this automatically because the entire point of
> reading FETCH_HEAD is that CMake does not try to parse the git
> config to learn this information.
> 
> What is your goal of using --tags?  The ctest_update command's job
> is to follow a tracking branch.  What do tags have to do with that?
> 
> -Brad
--

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

Reply via email to