[CMake] problem with include directories

Brad King brad.king at kitware.com
Mon Dec 13 18:15:04 EST 2004


Sergio Andrés wrote:

> Thanks for your answer... but I think my problems is a little different...
> 
> My CMakeLists generates a project that includes ITK, VTK and 2 more 
> libraries...
> Each of these libraries adds a INCLUDE_DIRECTORIES(..) command to add 
> the corresponding include dirs for each library. But then, when the 
> project is opened by MS VStudio, the list of include dirs are 
> imcomplete. I think this could be a problem related to a kind of limit 
> (characters) for INCLUDE_DIRECTORIES(..) ...   since the last characters 
> of the include dirs is:
> "...E:\sandres\SourceCode\RedesignTests\SMoLib_CVS\SMoLib\libModules\pdmodel\pdsets,
> E:\sandres\SourceCode\RedesignTests\SMoLib_CVS\SMoLib\libModules\utilities,
> E:\sandres\"
> 
> And you can see that the last directory path is not complete, and other 
> paths are not included.

Try running CMake to generate the project file and then looking at the 
.dsp file in an editor BEFORE opening it with Visual Studio.  Is the 
include path complete?  It is possible that it is VS that is truncating 
the path.

-Brad



More information about the CMake mailing list