[CMake] CMake uses wrong value of ProgramFiles variable on Windows platforms
Eric (Brad) Lemings
brad at rebit.com
Mon Nov 10 17:04:55 EST 2008
Consider the following:
C:\Users\myself\Test>type CMakeLists.txt
cmake_minimum_required(VERSION 2.6)
project (Test)
message (STATUS ENV{ProgramFiles}=$ENV{ProgramFiles})
C:\Users\myself\Test>set ProgramFiles
ProgramFiles=C:\Program Files
ProgramFiles(x86)=C:\Program Files (x86)
C:\Users\myself\Test>cmake -G "NMake Makefiles"
-- ENV{ProgramFiles}=C:\Program Files (x86)
-- Configuring done
-- Generating done
-- Build files have been written to:
C:/Users/elemings/Developer/Test/CMake/test05
A.) Why is CMake intentionally using the wrong value for ProgramFiles,
and B.) should this be corrected?
Thanks,
Eric.
More information about the CMake
mailing list