[CMake] CMake, Visual studio 2005 and long relative path

Eric Noulard eric.noulard at gmail.com
Thu Jan 8 09:39:49 EST 2009


2009/1/8 Julien Michel <julien.michel at c-s.fr>:
> Dear CMake users and developpers,
>
> My project is using cmake and I am trying to build it on Visual Studio 2005.
> The configuration process is successful, but when trying to compile, I have
> a long bunch of fatal C1083 error :
>
> fatal error C1083: impossible to open source file:
> '../../../../../../../../../../Path-to-the-source-file' no such file or
> directory.
>
> But when manually testing, the file is where visual is looking for it.
>
> After some more testing, it appears that windows does not recognize files if
> there are too many '../' in the path (even if the total path length does not
> exceed 150 characters).
>
> Is this a known limitation of visual, or due to a cmake recent update ? I

Which CMake version are your using?
Could you try with older CMake version?

> did not meet this problem before, and my project did not change that much
> ...
>
> Any clue of what is going wrong ?

Do you use relative path with some "../.." path in your CMakeLists.txt?

-- 
Erk


More information about the CMake mailing list