[CMake] Re: Target flags depending on compilation of another target

Rodolfo Schulz de Lima rodolfo at rodsoft.org
Sat Dec 29 11:22:07 EST 2007


"Alexander Neundorf" <a.neundorf-work at gmx.net> wrote in 
message news:200712291523.09775.a.neundorf-work at gmx.net...
> Why do you need that at build time ?
> If the lib is built in the same project, you can get the flags directly 
> from
> there.
> In all other cases it should be possible to write a cmake test to figure 
> it
> out or to load a 3rd-party-project installed cmake file which contains the
> settings.

I've solved this issue by running cmake/make twice, once for all external 
libs, then for my project. It's simpler this way (as Alan pointed out) and 
the result is the same.

Thanks anyway,
rod 




More information about the CMake mailing list