MantisBT - CMake
View Issue Details
0010653CMakeCMakepublic2010-04-30 14:592016-06-10 14:31
Robert Ioffe 
Bill Hoffman 
normalmajoralways
closedmoved 
CMake-2-8 
 
0010653: file(APPEND) command bombs in VS2010 64 bit re-generation
The following two lines in the macro
  file(REMOVE ${PROJECT_BINARY_DIR}/lrb_generated.mak)
  file(APPEND ${PROJECT_BINARY_DIR}/lrb_generated.mak "# This file is generated by CMake. Do not edit directly!\n")

cause the following error

4> CMake Error at CMakeLists_windows.cmake:126 (file):
4> file Internal CMake error when trying to open file:
4> C:/cygwin/home/Administrator/projects/cmake_ws/cmake_for_windows/VS2010_64/tests/smoke_xnmsg/lrb_generated.mak
4> for writing.
4> Call Stack (most recent call first):
4> tests/smoke_xnmsg/CMakeLists.txt:5 (add_lrb_test_library)


The code works OK in VS2008, but regeneration totally bombs on VS2010
I am using VS2010 64 bit generation.
No tags attached.
Issue History
2010-04-30 14:59Robert IoffeNew Issue
2010-04-30 15:39Bill HoffmanNote Added: 0020498
2010-04-30 15:40Bill HoffmanStatusnew => assigned
2010-04-30 15:40Bill HoffmanAssigned To => Bill Hoffman
2010-04-30 17:01Robert IoffeNote Added: 0020502
2010-05-02 13:35Bill HoffmanNote Added: 0020510
2016-06-10 14:27Kitware RobotNote Added: 0041690
2016-06-10 14:27Kitware RobotStatusassigned => resolved
2016-06-10 14:27Kitware RobotResolutionopen => moved
2016-06-10 14:31Kitware RobotStatusresolved => closed

Notes
(0020498)
Bill Hoffman   
2010-04-30 15:39   
That could should have nothing to do with the generator. It maybe a premission issue. CMake run from 2010 may not have the same rights as from VS 2008. What happens when you run cmake from outside of VS 2010? What are the permissions on the directory it is running? What if you run VS 2010 as admin?
(0020502)
Robert Ioffe   
2010-04-30 17:01   
I downloaded now CMake2.9 - todays build, checked permissions on the directory and started VS2010 as administrator. For some weird reason cmake insists on regenerating all projects the first time I build and has these writing errors, even though permissions are OK. Then, VS2010 goes into totally bizarre mode of trying to reload things one by one. I have to kill it and reload the solution, then things start building.
(0020510)
Bill Hoffman   
2010-05-02 13:35   
Can you create a minimal CMake project that shows this? Then attach a zip file to this bug. I assume this is VS 2010 professional of some sort.
(0041690)
Kitware Robot   
2016-06-10 14:27   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.