Hi,<div><br></div><div>If I have the following CMakeLists.txt:</div><div><br></div><div><div><font class="Apple-style-span" face="'courier new', monospace">cmake_minimum_required( VERSION 2.6.4 )</font></div><div><font class="Apple-style-span" face="'courier new', monospace"><br>
</font></div><div><font class="Apple-style-span" face="'courier new', monospace">project( project1 )</font></div><div><font class="Apple-style-span" face="'courier new', monospace">add_executable( project1 source1.cpp )</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace"><br></font></div><div><font class="Apple-style-span" face="'courier new', monospace">project( project2 )</font></div><div><font class="Apple-style-span" face="'courier new', monospace">add_executable( project2 source2.cpp )</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace"><br></font></div><div><font class="Apple-style-span" face="'courier new', monospace">project( project3 )</font></div><div><font class="Apple-style-span" face="'courier new', monospace">add_executable( project3 source3.cpp )</font></div>
<div><br></div><div>If I create visual studio 2008 files with this, I end up getting the following project files:</div><div><br></div><div>project1.vcproj</div><div>project2.vcproj</div><div>project3.vcproj</div><div>project3.sln</div>
<div><br></div><div>The problem here is that I want the SLN file to be named project1.sln (after the first call to project() ). Is there a way I can tell CMake which call to project() in the same directory will generate the "master" project file? Note that if I add a dummy project to the end of the file:</div>
<div><br></div><div><font class="Apple-style-span" face="'courier new', monospace">project( foo )</font></div><div><font class="Apple-style-span" face="'courier new', monospace"><br></font></div>I get:</div>
<div>project1.vcproj</div><div>project2.vcproj</div><div>project3.vcproj</div><div>foo.sln</div><div><br></div><div>So it gives me some limited control over the naming, but it isn't ideal.</div>