Brad,<br><br>We were in the case 1) and we wrongly assumed that was also fixed for previous versions of microsoft visual studio.<br><br>We are now recompiling by turning OFF CMAKE_USE_RELATIVE_PATHS.<br><br>Thanks for the link with respect to the VS 10 issues, interesting to learn about it!<br>
<br>Thanks,<br>Arnaud<br><br><div class="gmail_quote">On Mon, Jun 18, 2012 at 5:00 PM, Brad King <span dir="ltr"><<a href="mailto:brad.king@kitware.com" target="_blank">brad.king@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On 06/18/2012 09:40 AM, Arnaud Gelas wrote:<br>
> <a href="http://www.itk.org/pipermail/insight-developers/2011-March/017812.html" target="_blank">http://www.itk.org/pipermail/insight-developers/2011-March/017812.html</a><br>
><br>
> These errors occurred with a recent version of cmake (2.8.8), so I am a<br>
> little confused here.<br>
<br>
</div>The underlying problem is that VS does this with a relative path:<br>
<br>
c:\path\to\directory\with\project\file\..\..\..\relative\path\on\top\of\that\to\source.cpp<br>
<br>
and then fails when the total string is over 250 characters or so<br>
even though the collapsed full path would be well under the limit.<br>
<br>
This is only a problem when CMake stores relative paths in the<br>
project files, but we normally prefer full paths. AFAIK for<br>
VS 8 CMake stores relative paths under only two circumstances:<br>
<br>
(1) The unsupported option CMAKE_USE_RELATIVE_PATHS is on.<br>
<br>
(2) The sequence of "..\" is not long enough to escape the<br>
top-level of the build tree (CMAKE_BINARY_DIR).<br>
<br>
Is either of these the case for your build?<br>
<br>
----------------------------------------------------------------------<br>
FYI, the fix referenced in the thread you linked was for VS 10 only:<br>
<br>
<a href="http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=ed0075bd" target="_blank">http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=ed0075bd</a><br>
<br>
There is a lot more to it as covered here:<br>
<br>
<a href="http://www.cmake.org/Bug/view.php?id=12570" target="_blank">http://www.cmake.org/Bug/view.php?id=12570</a><br>
<br>
but that should not affect VS 8. There is extra trouble with VS 10<br>
because it has one bug for relative paths and another bug for full<br>
paths.<br>
<span class="HOEnZb"><font color="#888888"><br>
-Brad<br>
</font></span></blockquote></div><br>