In your superbuild, how are you getting ITK? git? tar-ball?
Some superbuild projects allow the setting of the source code directory of the sub-projects (ITK), this allows you to build the superbuild project against a custom version of the external project. This is much better that editing files in a check out source directory that is part of the superbuild build directory, because the superbuild may modify or change that checked out/untared directory when a top-level build is done.
dkuegler@pc2046 /cygdrive/g/super/itk $ ./Utilities/SetupForDevelopment.sh
Checking Git version…
Git version 2.14.1 is OK.
Setting pushurl for origin.
Checking basic user information…
Please enter your full name, such as ‘John Doe’: David K____
Setting name to 'David Kügler’
Please enter your email address, such as ‘firstname.lastname@example.org’: david.k___@___
Setting email address to 'david.k___@____'
Your commits will have the following author:
David K___ <david.k___@___>
Is the author name and email address above correct? [Y/n]
Setting up git hooks… ./SetupHooks.sh: Zeile 39: cd: /cygdrive/g/super/itk/Utilities/DevelopmentSetupScripts/…/…/.git/hooks: Not a directory Leeres Git-Repository in /cygdrive/g/super/itk/Utilities/DevelopmentSetupScripts/.git/ initialisiert
Pulling the hooks…
warning: Leite nach https://public.kitware.com/ITK.git/ um
remote: Counting objects: 202, done.
remote: Compressing objects: 100% (81/81), done.
remote: Total 202 (delta 122), reused 195 (delta 117)
Empfange Objekte: 100% (202/202), 39.95 KiB | 300.00 KiB/s, Fertig.
Löse Unterschiede auf: 100% (122/122), Fertig.
branch hooks -> FETCH_HEAD
HEAD ist jetzt bei 76566ed Add a ‘post-commit’ hook.
Setting up the uncrustify hook…
Setting up the KWStyle hook…
Setting up useful Git aliases…
Would you like general Git aliases to be global? [y/N]:
Setting up Gerrit…
Gerrit is a code review system that works with Git.
In order to use Gerrit, an account must be registered at the review site: