[Scons-users] CPPDFINES oder conf.Define
Florian Lindner
mailinglists at xgm.de
Sat Aug 16 04:45:23 EDT 2014
Gary Oberbrunner wrote:
> 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.
What do you mean by 'within a configure context'. Usually I do
env = Environment(variables = vars, ENV = os.environ)
conf = Configure(env)
at the top of my SConstruct.
So I am always inside a configure context, am I not?
Rgds,
Florian
More information about the Scons-users
mailing list