Seems to be bug in CMake!<div><br></div><div>I reduce the solution down to 1 project. Still fails. So I copied the generated .sln file into agx.cmake.sln</div><div><br></div><div>Then I marked the solution in VisualStudio and selected File-&gt;save agx.sln.</div>

<div><br></div><div>Now it works to build the whole solution.</div><div>So there is SOMETHING wrong with the .sln file that CMake generates, which VisualStudio silently fixes when it saves the solution again.</div><div><br>

</div><div>I have attached the initial .sln file generated by CMake (2.8.3) and the saved (from VisualStudio).</div><div><br></div><div>agx.sln - saved with VisualStudio File-&gt;Save agx.sln</div><div>agx.cmake.sln - As generated by CMake.</div>

<div><br></div><div>/A<br><br><div class="gmail_quote">On Mon, Dec 27, 2010 at 3:41 PM, Anders Backman <span dir="ltr">&lt;<a href="mailto:andersb@cs.umu.se">andersb@cs.umu.se</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

Hi all.<br clear="all"><br>Im using CMake 2.8.3 under windows 7 with Visual Studio 2010 32 bit.
<div><br></div><div>I have a rather large CMake configuration which has worked for a few years (VS2008).</div><div>Now today I wanted to use VS2010 and suddenly ran into a problem.</div><div><br></div><div>We use Incredibuild for a distributed build, and when I configure the project and do Incredibuild-&gt;Clean I get the error:</div>


<div><br></div><div><div>Build started 2010-12-27 15:34:03.</div><div>     0&gt;A:\projects\trunk_x86_vs2010\x.sln.metaproj : Solution file error MSB4051: Project {6F41A287-5427-4997-A6F8-F56C774459AD} is referencing a project with GUID {13D5BF06-3AE9-4798-8955-3D15D7DB6A60}, but a project with this GUID was not found in the .SLN file.</div>


</div><div><br></div><div><br></div><div>I reduced our project down from &gt; 200 projects down to 4 and I still get the problem.</div><div>To remove the uncertainty of using Incredibuild I instead used msbuild and I get the exact same problem:</div>


<div><br></div><div><div>a:\projects\trunk_x86_vs2010&gt;msbuild x.sln</div><div>Microsoft (R) Build Engine Version 4.0.30319.1</div><div>[Microsoft .NET Framework, Version 4.0.30319.208]</div><div>Copyright (C) Microsoft Corporation 2007. All rights reserved.</div>


<div><br></div><div>Build started 2010-12-27 15:34:16.</div><div>a:\projects\trunk_x86_vs2010\x.sln.metaproj : Solution file error MSB4051: Project {6F41A287-5427-4997-A6F8-F56C774459AD} is referencing a project with GUID {13D5BF06-3AE9-4798-8955-3D15D7DB6A60}, but a project with this GUID was not found in the .SLN file.</div>


<div><br></div><div>Build FAILED.</div><div><br></div><div>  a:\projects\agx\trunk_x86_vs2010\x.sln.metaproj : Solution file error MSB4051: Project {6F41A287-5427-4997-A6F8-F56C774459AD} is referencing a project with GUID {13D5BF06-3AE9-4798-8955-3D15D7DB6A60}, but a project with this GUID was not found in the .SLN file.</div>


</div><div><br></div><div><br></div><div>But it works if I build with VisualStudio BUILD-&gt;Clean (that is the ordinary clean inside the VS gui).</div><div>I did some googling on it, and some indicated a missing EndProject in the .sln file, but I certainly cant see anything like that.</div>


<div><br></div><div>Anyone with similar experience?</div><div><br></div><font color="#888888"><div>/A</div>
</font></blockquote></div><br><br clear="all"><br><br>
</div>