[Insight-users] CMake Configuration Error With VC++ 7.0

jlazdotcom-itk at yahoo.com jlazdotcom-itk at yahoo.com
Wed Aug 17 15:29:25 EDT 2005


Greetings,
 
I get the following errors when attempting to configure ITK 2.0.1 with CMake versions 2.2 (beta) for VC++ 7.0.
 
"Library ITKBasicFilters is defined using ADD_LIBRARY 
after the library is used using TARGET_LINK_LIBRARIES 
for the target ITKFEM.  This breaks CMake's dependency 
handling.  Please fix the CMakeLists.txt file.  (Press  
Cancel to suppress any further messages)."
 
"Library ITKIO is defined using ADD_LIBRARY after the 
library is used using TARGET_LINK_LIBRARIES for the 
target ITKFEM.  This breaks CMake's dependency handling.  
Please fix the CMakeLists.txt file.  (Press  Cancel to suppress 
any further messages)."
 
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.
 
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.
 
A few more pieces of data:
1  After unzipping the distribution (InsightToolkit-2.0.1.zip), I did not modify the unzipped files before running CMakeSetup.exe.
2. I created the bin directory under C:\InsightToolkit-2.0.1\itkbin. 
3. I was able to successfully build VTK 4.4 with CMake 2.2 using the same compiler installation without any issues.
 
Any guidance or suggestions for working around these errors would be most appreciated.

Regards,
 
-Jon Lazarus
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/insight-users/attachments/20050817/64d2c591/attachment.htm


More information about the Insight-users mailing list