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
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