[CMake] Visual Studio solutions

Torsten Martinsen tma at gatehouse.dk
Fri Aug 10 03:30:47 EDT 2007


I wrote:

> when I use the "Visual Studio 7 .NET 2003" generator, CMake generates
> one .vcproj file for each library/application,
> and one .sln file that contains all the .vcproj files, with
> appropriate dependencies. So far so good. 
> 
> What I would like in addition is a .sln file for each application, so
> that a developer working on that application
> does not have to load the full solution file. Is this possible?

Well, it turned out that the reason was simply that I did not have a
"PROJECT" statement in each application's CMakeLists.txt (as Brandon
pointed out).

With the PROJECT statement, the desired number of .sln files is
generated - however, the generated dependencies are not correct. Manuel
Klimek let me know that he had implemented a patch to fix this
(http://www.cmake.org/Bug/view.php?id=3218). I have updated the patch
for 2.4.7, and I am now deploying the patched version to my group.

I hope this patch will be included in the next version.

-Torsten

This e-mail and any files sent with it contain information that may be privileged or confidential and is the property of the GateHouse Group. This information is intended solely for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use the message or any part thereof. If you have received this e-mail in error, please notify the sender immediately, and delete all copies of this message. In accordance with GateHouse Security Policy, e-mails sent or received may be monitored. 


More information about the CMake mailing list