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

Julien Michel julien.michel at c-s.fr
Thu Jan 8 08:56:21 EST 2009


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 did not meet this problem before, and my project did not change that 
much ...

Any clue of what is going wrong ?

Best regards,

Julien
-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Julien MICHEL - Ingénieur d'études - Traitement d'images
CS Systèmes d'Information - Division ESPACE
Département Information Géographique & Image
Téléphone : +33 561 17 64 27
Email : julien.michel at c-s.fr

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



More information about the CMake mailing list