[CMake] Windows 7 - Permissions issues?

Steve Westenbroek smwesten at usgs.gov
Tue Jul 19 17:15:08 EDT 2011


I am continuing in my quest to use CMake to build a small (< 20 source 
files) Fortran and C project.

I am running into very strange behavior that appears to be related to 
permissions; the permissions revolve around an attempt to write to the 
"Windows" directory. Why on earth would CMake produce a makefile that 
requires access to the "Windows" directory? Have I missed a variable 
definition somewhere?

The message I receive is:

_D:\SMWData\Source_Code\tsproc_dev\share\libanne4.0\build\win32>make
Scanning dependencies of target wdm
[  1%] Building Fortran object wdm/CMakeFiles/wdm.dir/tsbufr.f.obj
Cannot create temporary file in C:\Windows\: Permission denied

This application has requested the Runtime to terminate it in an unusual 
way.
Please contact the application's support team for more information.
make[2]: *** [wdm/CMakeFiles/wdm.dir/tsbufr.f.obj] Error 3
make[1]: *** [wdm/CMakeFiles/wdm.dir/all] Error 2
make: *** [all] Error 2

Earlier in the day I was getting another message similar to this when 
CMake attempted to test the validity of my gcc; gcc would crash, and 
there was a hint in the error message that a temporary file could not be 
created in C:\Windows.

Help?! Thanks.


More information about the CMake mailing list