Setting an option

Jeremy Cowgar <[email protected]> Sat, 12 Sep 2009 23:58:00 +0000 (UTC)
Newsgroups gmane.comp.sysutils.bakefile.devel
Message-ID <[email protected]>
I have:

<option name="MANAGED_MEMORY">
  <values>no,yes</values>
  <values-description>No,Yes</values-description>
</option>
	
<set var="USE_MANAGED_MEMORY" 
    cond="MANAGED_MEMORY=='yes'">-DEU_MANAGED_MEMORY</set>

Later:

<action...>
  <command>
    .. $(USE_MANAGED_MEMORY)

I was expecting that USE_MANAGED_MEMORY would be set to "-DEU_MANAGED_MEMORY" 
if I called, say, "wmake MANAGED_MEMORY=yes" but I don't even see how this 
would be in the Makefile and of course, it's not working.

What am I doing wrong for these types of values?

Jeremy



------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july