[CMake] setting Visual Studio solution name

2010-09-28 Thread J Decker
Is there a way to specify what the name of the solution file should be? Currently it's named from the last PROJECT in a CMakeLists.txt. I would prefer that it be the first name... I see methods of setting output files for particular projects, but not the solution __

Re: [CMake] setting Visual Studio solution name

2010-09-28 Thread Ryan Pavlik
In most cases, you won't need more than one project call - each target (add_executable, etc) creates a visual studio project, so the only reason I can think of that you'd necessarily have multiple project calls is if you have a subdirectory that can also stand alone as a separate build. You might

Re: [CMake] setting Visual Studio solution name

2010-09-28 Thread J Decker
On Tue, Sep 28, 2010 at 6:23 PM, Ryan Pavlik wrote: > In most cases, you won't need more than one project call - each target > (add_executable, etc) creates a visual studio project, so the only > reason I can think of that you'd necessarily have multiple project > calls is if you have a subdirecto

Re: [CMake] setting Visual Studio solution name

2010-09-29 Thread John Drescher
I am not exactly sure what you are doing but on all my CMake projects I put only 1 target at the root level project. All other subprojects are in subdirectories of the root target. The CMakeLists for these subprojects can have project names but this is not needed. The solution gets the name from th