Re: [CMake] make a project also a subproject

2012-06-22 Thread Leif Walsh
That is very encouraging. I remembered getting problems but haven't tried on 2.8.8 yet I guess. Thanks, I'll try it soon. Sent from my iPhone On Jun 22, 2012, at 13:32, David Cole wrote: > > > On Fri, Jun 22, 2012 at 12:10 PM, Leif Walsh wrote: > Suppose I have two projects, A and B. A bu

Re: [CMake] make a project also a subproject

2012-06-22 Thread David Cole
On Fri, Jun 22, 2012 at 12:10 PM, Leif Walsh wrote: > Suppose I have two projects, A and B. A builds a shared lib that links > with a static lib in B. > > Sometimes, I want to build and test B by itself. Other times I want to > build A, which requires building B. > > For now, I manually (or wit

Re: [CMake] make a project also a subproject

2012-06-22 Thread Andreas Pakulat
Hi, On Fri, Jun 22, 2012 at 6:10 PM, Leif Walsh wrote: > Suppose I have two projects, A and B. A builds a shared lib that links > with a static lib in B. > > Sometimes, I want to build and test B by itself. Other times I want to > build A, which requires building B. > > For now, I manually (or

Re: [CMake] make a project also a subproject

2012-06-22 Thread Petr Kmoch
Hi Leif. I'm not on a machine with cmake now so I can't test, but I guess the variable PROJECT_NAME is empty if no project() has been called yet. Petr On Fri, Jun 22, 2012 at 6:10 PM, Leif Walsh wrote: > Suppose I have two projects, A and B.  A builds a shared lib that links with > a static li

[CMake] make a project also a subproject

2012-06-22 Thread Leif Walsh
Suppose I have two projects, A and B. A builds a shared lib that links with a static lib in B. Sometimes, I want to build and test B by itself. Other times I want to build A, which requires building B. For now, I manually (or with a script) build B, then set an environment variable to say wh