Skip to content
Back to formatted view

Raw Message

Message-ID: <CAOTmaJEAFiHR-kWtma9fC8-9xzUJtqbFPrsmPAZ27FutXY+JbA@mail.gmail.com>
Date: 2013-10-01T12:37:14Z
From: Gad Abraham
Subject: [Rcpp-devel] Makevars flags that get evaluated

Hi,

I've started using Rcpp recently and it's great!

Is there a list of which of the Makevars variables are evaluated, i.e.,
ones that I can declare as backticks for conditional results. For example,
I'd like to be able to declare an environment variable during package
installation, e.g.:

USE_OPENCL=yes R CMD INSTALL package


but neither
PKG_CPPFLAGS += `if ! [ -z $(USE_OPENCL) ]; then echo '-DUSE_OPENCL'; fi`
nor
PKG_CXXFLAGS += `if ! [ -z $(USE_OPENCL) ]; then echo '-DUSE_OPENCL'; fi`

seems to work.

Thanks,
Gad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20131001/690e86d3/attachment.html>