[Insight-developers] Insight Cable Swig building in 1.4.0

Hans J. Johnson hans-johnson at uiowa . edu
Tue, 21 Oct 2003 14:37:26 -0500


Hello Cable Swig Team,

It looks like a CMakeLists.txt update was missed in the 1.4.0 release
(and current CVS) when the CableSwig was moved from Utilities to
Wrapping.

I don't really know what is going on here, but this just looks like a
mistake.

# Find CableSwig if necessary.
IF(ITK_NEED_CableSwig)
  IF(EXISTS ${ITK_SOURCE_DIR}/Utilities/CableSwig)
....
blah
....
  ELSE(EXISTS ${ITK_SOURCE_DIR}/Utilities/CableSwig)
....
blah
....
ENDIF(EXISTS ${ITK_SOURCE_DIR}/Utilities/CableSwig)

1) Should ${ITK_SOURCE_DIR}/Utilities/CableSwig be
${ITK_SOURCE_DIR}/Wrapping/CSwig?

2) Why do the IF and ELSE parts both have the same conditions?

Regards,
Hans


PS:  I found this while trying to figure out why the build system is
using a (defunct) system wide version of CableSwig rather than the fresh
copy with each build.