[Scons-users] CPPDFINES oder conf.Define

Gary Oberbrunner garyo at oberbrunner.com
Fri Aug 15 12:14:24 EDT 2014


On Fri, Aug 15, 2014 at 4:44 AM, Florian Lindner <mailinglists at xgm.de>
wrote:

> Hello,
>
> http://www.scons.org/doc/production/HTML/scons-user.html mentions
> CPPDEFINES
> for setting defines.
>
> http://www.scons.org/doc/production/HTML/scons-man.html on the other hand
> mentions sconf.Define(symbol, [value, comment]) for that.
>
> What is right way to set defines for C++?
>

CPPDEFINES is almost always the right answer.  sconf.Define() should only
be used to add to the set of CPPDEFINES within a Configure context.

-- 
Gary
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://four.pairlist.net/pipermail/scons-users/attachments/20140815/0ebd3b21/attachment.html>


More information about the Scons-users mailing list