<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 01/22/2014 06:05 PM, Tony-Alexandru
Dincu wrote:<br>
</div>
<blockquote
cite="mid:91401D9379ADF84A81F68C6D7E04E81D2C355AC3D5@PDC-MAIL-CMS01.ubisoft.org"
type="cite">
<p class="MsoNormal">We are trying to build a complex solution
which has a path 72 characters long with CMake 2.8.12, but the
build fails saying that some files can’t be found.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I investigated the problem and I saw that the
problem is from relative path. With CMake 2.8.8 the solution
builds, but with CMake 2.8.9 no.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal" style="text-autospace:none">I saw that <b>CMAKE_USE_RELATIVE_PATHS
</b>isn’t working very well (<a moz-do-not-send="true"
href="http://public.kitware.com/Bug/view.php?id=12563">http://public.kitware.com/Bug/view.php?id=12563</a>)
and I tried to replace this line from
cmVisualStudio10TargetGenerator.cxx <o:p></o:p></p>
<p class="MsoNormal" style="text-indent:.5in;text-autospace:none"><span
style="font-size:9.5pt;font-family:Consolas;color:green">std::string
sourceFile = this->ConvertPath(sf->GetFullPath(),
false);<o:p></o:p></span></p>
<p class="MsoNormal">with this one<o:p></o:p></p>
<p class="MsoNormal" style="text-autospace:none"> <span
style="font-size:9.5pt;font-family:Consolas;color:blue">std</span><span
style="font-size:9.5pt;font-family:Consolas">::<span
style="color:blue">string</span> <span style="color:navy">sourceFile</span>
= <span style="color:navy">sf</span>-><span
style="color:#880000">GetFullPath</span>();<o:p></o:p></span></p>
<p class="MsoNormal">in order to force absolute path.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Now the projects are building correctly, but
I’m not sure that this is the best solution. What do you
recommend us to do in order to solve this problem? It would be
nice if there were a way to do this without modifying CMake.</p>
</blockquote>
<br>
Hi<br>
<br>
Could you show us a diff between the old project files and the new
ones, with your modification ? AFAIK there seems to be something
wrong with the project generator for Visual Studio 2010. <br>
<br>
regards<br>
Bogdan<br>
</body>
</html>