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 <[email protected]>: > 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 -- 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
