[Insight-developers] Wrapping Woes -- And a fix

Brad King brad.king at kitware.com
Thu Jun 2 13:35:28 EDT 2005


Hans Johnson wrote:
> I have been having problems with building CableSwig itself.  It turns out
> that the include paths used for building CableSwig are added to then end of
> the ITK include paths.  This causes problems when the ITK include paths
> point to a directory that contains a file named the same as one CableSwig
> requires from its own directory (i.e. "config.h" was my culprit).
> 
> I have solved the problem by simply adding BEFORE flag to the
> INCLUDE_DIRECTORIES commands in a few of the CableSwig CmakeLists files.  It
> may be prudent to do this to all the INCLUDE_DIRECTORIES commands  for
> CableSwig.

I've used BEFORE as you suggested in many of the INCLUDE_DIRECTORIES 
commands in CableSwig.  If we didn't have to support CMake 1.8 anymore 
then we could add a SET_DIRECTORY_PROPERTIES command at the top of 
CableSwig to wipe the include path clean and avoid the problem altogether.

-Brad


More information about the Insight-developers mailing list