Hi,

On Fri, 2008-12-19 at 09:07 +0800, Gerrit Voss wrote:
> Hi,
> 
> On Thu, 2008-12-18 at 19:26 -0300, Thiago Bastos wrote:
> > Hi,
> > 
> >         Yes, but if I have a separate flag (like the memory debugging
> >         one
> >         mentioned) that's not linked to debug/release/whatnot, then I
> >         get the
> >         same issue. I don't think you can specify different flags for
> >         different
> >         builds with cmakesetup?
> > 
> > Well, if I understood the problem correctly, I think you can.
> > You could use the property family "CMAKE_<LANG>_FLAGS_<CONFIG>". For
> > instance, CMAKE_CXX_FLAGS_DEBUG.
> > The limitation AFAIK is that any flag you set for a build type will
> > affect all targets (i.e. you can't set a debug flag for only a
> > specific target with this method).
> > 
> >  
> >         Assuming that, yeah, it's a bit better than makefiles, but
> >         it's not perfect.
> > 
> > Yeah, it's really far from perfect. But for practical purposes it's
> > still the best I found so far.
> > If they had used a real scripting language (e.g. Lua) and polished
> > some rough edges, then it would be close to perfect :-)
> 
> hmm, not sure if I follow this one completely ;-)
> 
> Anyway, yes you can change the compiler/linker flags per
> file/target from cmakelists.txt using their respective properties.
> But you have to provide the logic to expose this to the configuration 
> frontend.
> 
> And also yes you must use different directories, one for each variant.

actually as a side effect of fighting with the installation rules it 
should be possible to do it within one main directory even with
makefiles.

AFAIS you would have to change the way the user sets up things,
the global WHATEVER_${BUILD_TYPE} would not work anymore.

But I'm not sure if I want to go down this road. Anyway I hope I 
can commit something today (as soon as I finalized the install part),
so anybody interested can have a look.

kind regards,
  gerrit



------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Opensg-users mailing list
Opensg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to