How to retrieve a user environment variable in CMake (Windows)

Viewed 119099

I know how to retrieve a normal machine wide environment variable in CMAKE using

$ENV{EnvironmentVariableName}

but I can not retrieve a user specific environment variable. Is it possible and how?

4 Answers
Related