[CMake] CMake 2.8.3 with VC2010 - CHECK_FUNCTION_EXISTS failed

Bill Hoffman bill.hoffman at kitware.com
Tue Jan 25 13:19:55 EST 2011


On 1/25/2011 9:14 AM, Dongsheng Song wrote:

>
>  From the page
> http://www.cmake.org/Wiki/CMake_FAQ#Is_there_an_option_to_produce_more_.27verbose.27_compiling.3F
>
> but when I set CMAKE_START_TEMP_FILE and CMAKE_END_TEMP_FILE to "" ,
> CMakeError.log still include such lines:
>
> E:\usr\vs2010\VC\bin\cl.exe  @C:\DOCUME~1\DONGSH~1\LOCALS~1\Temp\nm506.tmp
>

OK, so I just learned something about windows 7 today...  Welcome to 
VirtualStore.   When you try to edit a file in Program Files as 
non-admin, Windows silently creates another copy of the file for you to 
edit.

For me it showed up here:
./AppData/Local/VirtualStore/Program Files (x86)/CMake 
2.8/share/cmake-2.8/Modules/Platform/Windows.cmake

CMake for some reason does not pick up this alternate file, and still 
uses the original (unchanged) file in Program Files.  So, the FAQ is 
still good, but you need to edit the file as admin to actually change it.

-Bill


More information about the CMake mailing list