[R-pkg-devel] Set env variables for cmake
Kevin Ushey
kev|nu@hey @end|ng |rom gm@||@com
Fri Nov 8 19:38:14 CET 2019
It would help if you shared your source code, so we know what you've tried.
Presumably, you need to either export the variables you're setting, or
just pass them along when invoking CMake. For example:
ENVVAR=1
export ENVVAR
cmake <...>
or
ENVVAR=1 cmake <...>
Best,
Kevin
On Thu, Nov 7, 2019 at 11:25 PM Sameh M. Abdulah
<sameh.abdulah using kaust.edu.sa> wrote:
>
> I am using CMake command inside the configure file to install some dependencies for my package. These CMake commands require setting an environment variable. When I set it inside the configure file, it does not work!. Thus, I have used .Renviron file to set my env variables. This solution works on my machine but it does not work with CRAN and I do not know why. What is the best way to set environment variables for my configure file?
>
>
> --Sameh
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-package-devel using r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-package-devel
More information about the R-package-devel
mailing list