[Insight-developers] KWStyle hook problems
Bill Lorensen
bill.lorensen at gmail.com
Mon Oct 3 13:07:32 EDT 2011
I see the problem. My .git/config file has the line:
conf = Utilities/KWStyle/ITK.kws.xml.in
This should point to the cmake configure file in my build tree.
If I remove the line:
<Header>@ITK_SOURCE_DIR@/Utilities/KWStyle/ITKHeader.h,false,true</Header>
then the pre-commit hook works, but when I run the KWStyle tests,
kwstyle complains that it does not find the header file.
I will try modifying the test to use the pre-configured file.
Bill
On Mon, Oct 3, 2011 at 12:51 PM, Bill Lorensen <bill.lorensen at gmail.com> wrote:
> I have a patch in gerrit:
> http://review.source.kitware.com/#change,3039
> that adds the line:
> <Header>@ITK_SOURCE_DIR@/Utilities/KWStyle/ITKHeader.h,false,true</Header>
> to Utilities/KWStyle/ITK.kws.xml.in.
> This file is properly configured when I run cmake. After that I can run
> ctest -R KWStyle
> and get expected results.
>
> But, when I try to do a commit, I get these errors:
> Processing Modules/Numerics/HighDimensionalOptimizers/src/itkGradientDescentObjectOptimizer.cxx
> Cannot open header file: @ITK_SOURCE_DIR@/Utilities/KWStyle/ITKHeader.h
>
> Seems like the hook is not looking at the configured file.
>
> Bill
>
More information about the Insight-developers
mailing list