<DIV>Greetings,</DIV>
<DIV>&nbsp;</DIV>
<DIV>I get the following errors when attempting to configure ITK 2.0.1 with CMake versions 2.2 (beta) for VC++ 7.0.</DIV>
<DIV>&nbsp;</DIV>
<DIV>"Library ITKBasicFilters is defined using ADD_LIBRARY </DIV>
<DIV>after the library is used using TARGET_LINK_LIBRARIES </DIV>
<DIV>for the target ITKFEM.&nbsp; This breaks CMake's dependency </DIV>
<DIV>handling.&nbsp; Please fix the CMakeLists.txt file.&nbsp; (Press&nbsp; </DIV>
<DIV>Cancel to suppress any further messages)."</DIV>
<DIV>&nbsp;</DIV>
<DIV>"Library ITKIO is defined using ADD_LIBRARY after the </DIV>
<DIV>library is used using TARGET_LINK_LIBRARIES for the </DIV>
<DIV>target ITKFEM.&nbsp; This breaks CMake's dependency handling.&nbsp; </DIV>
<DIV>Please fix the CMakeLists.txt file.&nbsp; (Press&nbsp; Cancel to suppress </DIV>
<DIV>any further messages)."</DIV>
<DIV>&nbsp;</DIV>
<DIV>CMake manages to produce a Project.sln file despite these errors, but the project will not build because the compiler cannot find any of the header files.&nbsp; In addition, the include paths for all of the projects are empty.&nbsp; Therefore, I suspect that the sln and project files were not fully configured when CMake produced the errors above and configuration process was ended prematurely.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Suspecting that this issue may be related to either the ITK version or CMake version, I tried configuring with CMake 2.0 and ITK 1.8.0 but encountered the same errors.</DIV>
<DIV>&nbsp;</DIV>
<DIV>A few more pieces of data:</DIV>
<DIV>1&nbsp; After unzipping the distribution (InsightToolkit-2.0.1.zip), I did not modify the unzipped files before running CMakeSetup.exe.</DIV>
<DIV>2. I created the bin directory under C:\InsightToolkit-2.0.1\itkbin.&nbsp;</DIV>
<DIV>3. I was able to successfully build VTK 4.4 with CMake 2.2 using the same compiler installation without any issues.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Any guidance or suggestions for working around these errors would be most appreciated.</DIV>
<DIV><BR>Regards,</DIV>
<DIV>&nbsp;</DIV>
<DIV>-Jon Lazarus</DIV>