[Insight-developers] changes to config files breaks external build?

Kent Williams norman-k-williams@uiowa.edu
Mon, 10 Mar 2003 12:58:54 -0600


I have a test program that I compile and link against installed ITK libra=
ries=20
and headers.  Last week I could configure and build it with no problem, b=
ut=20
after updating from the CVS tree this morning, it produces a Makefile mis=
sing=20
the -I clause for vnl/vnl_matrix.h.  Did something change in the CMake fi=
les=20
for ITK?

My CMakeList.txt:
PROJECT(test_ge)
INCLUDE (${CMAKE_ROOT}/Modules/FindITK.cmake)
IF (USE_ITK_FILE)
   INCLUDE (${USE_ITK_FILE})
ENDIF (USE_ITK_FILE)

SET(test_ge_SRCS
test_ge.cxx
)

ADD_EXECUTABLE(test_ge ${test_ge_SRCS})
TARGET_LINK_LIBRARIES(test_ge ITKCommon ITKIO)

The result is that once I configure, I get a bunch of errors along the li=
nes=20
of:

In file included from=20
/home/scratch/kent/buildhome/ix86/DEBUG/include/InsightToolkit/Common/itk=
AffineTransform.h:422,
                 from=20
/home/scratch/kent/buildhome/ix86/DEBUG/include/InsightToolkit/Common/itk=
Image.txx:24,
                 from=20
/home/scratch/kent/buildhome/ix86/DEBUG/include/InsightToolkit/Common/itk=
Image.h:357,
                 from=20
/home/scratch/kent/buildhome/ix86/DEBUG/include/InsightToolkit/Common/itk=
ImageConstIterator.h:20,
                 from=20
/home/scratch/kent/buildhome/ix86/DEBUG/include/InsightToolkit/Common/itk=
ImageRegionConstIterator.h:20,
                 from=20
/home/scratch/kent/buildhome/ix86/DEBUG/include/InsightToolkit/Common/itk=
ImageRegionIterator.h:20,
                 from /home/scratch/kent/work/build/test_ge/imageutils.h:=
24,
                 from /home/scratch/kent/work/build/test_ge/test_ge.cxx:1=
9:
/home/scratch/kent/buildhome/ix86/DEBUG/include/InsightToolkit/Common/itk=
AffineTransform.txx:22:41:=20
vnl/algo/vnl_matrix_inverse.h: No such file or directory

Just as a hack I added this to the CMakeLists.txt
INCLUDE_DIRECTORIES(${ITK_DIR}/../../include/InsightToolkit/Numerics/vxl)
INCLUDE_DIRECTORIES(${ITK_DIR}/../../include/InsightToolkit/Numerics/vxl/=
vcl)

But that doesn't look so great, and shouldn't be necessary.