Re: [R-pkg-devel] Set env variables for cmake

2019-11-08 Thread Kevin Ushey
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 T

[R-pkg-devel] Set env variables for cmake

2019-11-07 Thread Sameh M. Abdulah
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