[aquaria] Patch to set data directory prefix at compile time

James Le Cuirot chewi at aura-online.co.uk
Fri Jun 18 01:42:18 EDT 2010

On Fri, 18 Jun 2010 08:21:25 +0000
achurch+aquaria at achurch.org (Andrew Church) wrote:

> >The layers of macros may seem odd but it seems you need that many to
> >stringify it properly. Please correct it if you know a better way.  
> Are you sure you're passing the command-line parameter correctly?
> It needs to be quoted, i.e. '-DBBGE_DATA_PREFIX="/usr/share/games"' or
> -DBBGE_DATA_PREFIX=\"/usr/share/games\" .  That will let you use
> BBGE_DATA_PREFIX as a string literal in the code without any extra
> stringifying macros.

I was forgetting you could just do that. I fell into this mess when I
tried to do this for Gish by adding the parameter to CMakeLists.txt
with ADD_DEFINITIONS. It seems to mess up the quoting so I had to use
those layers and escape the spaces with backslashes. Probably easier to
just stick it in CPPFLAGS.


More information about the aquaria mailing list