<DIV>Greetings,</DIV>
<DIV> </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> </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. This breaks CMake's dependency </DIV>
<DIV>handling. Please fix the CMakeLists.txt file. (Press </DIV>
<DIV>Cancel to suppress any further messages)."</DIV>
<DIV> </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. This breaks CMake's dependency handling. </DIV>
<DIV>Please fix the CMakeLists.txt file. (Press Cancel to suppress </DIV>
<DIV>any further messages)."</DIV>
<DIV> </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. In addition, the include paths for all of the projects are empty. 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> </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> </DIV>
<DIV>A few more pieces of data:</DIV>
<DIV>1 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. </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> </DIV>
<DIV>Any guidance or suggestions for working around these errors would be most appreciated.</DIV>
<DIV><BR>Regards,</DIV>
<DIV> </DIV>
<DIV>-Jon Lazarus</DIV>