[CMake] Windows 64: $ENV{PROGRAMFILES}

Georg Richter georg at mysql.com
Fri Jun 1 16:33:34 EDT 2007


Hello,

just detected some strange behaviour on Windows64, when using the
$ENV{PROGRAMFILES} variable.

an echo %PROGRAMFILES% in shell shows a path to C:\Program Files
inside CMake $ENV{PROGRAMFILES} returns C:\Program Files(x86).

Any hints how to solve this? According to the documentation ENV returns
the value of environment variables. There is another environment
variable PROGRAMFILES(X86), obviously CMake returns it content.

/Georg


More information about the CMake mailing list