[CMake] How to create a custom solution with Visual Studio 2010 generator?
J Decker
d3ck0r at gmail.com
Tue Sep 22 03:40:04 EDT 2015
> I've tried running cmake independently for each subproject but I get errors about unknown
> Targets since every Sub Project depends on targets from 'earlier' one.
>
> I have about 620 targets (VS projects) so when I open Main Project.sln (with 620 projects) in VS it is impossible to work with.
> Currently cmake produces .sln for each Sub Project but includes dependencies from other projects and that's something I don’t want
> Since the amount of projects in each .sln increases the further I go and most of them (later in the dependency chain) are not possible to work
> with either. I'm trying to divide it into .slns that developers could work with in VS.
>
Hmm; I was going to check to see if .sln's were made in subdirs... and
they are... wonder if it was always taht way.
But... the projects deeper in the tree only have those things that it
depended on... so I don't get why you say 'the amount of projects
increases the further you go' Yes... high level projects will have
all of their dependancies but nothing extra...
isn't it already making the minimal solutions you're suggesting you
make by hand anyway?
Other than as I use this; the Install rule in the sub-solution doesn't
install everything...
could wish the OutputPath cmake built was relative to the solution
instead of the projects... then at least nothing funky would have to
be done to run applications from the debugger; other than data
resources could still be missing.
More information about the CMake
mailing list