This was my reply I accidentally just hit 'reply' On Tue, Jul 19, 2011 at 2:15 PM, Steve Westenbroek <[email protected]> wrote: > 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? >
your tempoary path might be like set TEMP= or set TMP= should be like /users/you/appdata/something/temp it's probably a 64 bit system, which actually means that when a 32 bit process writes to /windows/ it goes to /users/you/appdata/local(?)/VirtualStore/c(?)/windows or maybe you're using 32 bit cmake and 64 bit compilers? you can just turn off User Account Control; which controls permissions on /windows/ pretty strictly - so unless you request the proper token (which invokes a dialogbox) you don't get to write to /windows/ > 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. > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the CMake FAQ at: > http://www.cmake.org/Wiki/CMake_FAQ > > Follow this link to subscribe/unsubscribe: > http://www.cmake.org/mailman/listinfo/cmake > _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
