Friday, April 15, 2011

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

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?

From stackoverflow
  • Ok, the CMake command as described works as it should. Even for user environment variables. I don´t know what I did wrong... ;)

0 comments:

Post a Comment