MantisBT - CMake
View Issue Details
0011651CMakeCMakepublic2011-01-03 16:402011-01-15 20:57
Maddes 
Bill Hoffman 
normalmajoralways
closedno change required 
WindowsWindows XPXP SP3
CMake 2.8.3 
 
0011651: Generator "Visual Studio 7": Invalid solution file
When creating solution and project files with CMake -G "Visual Studio 7" then the generated solution file (.sln) is invalid.
Reason is that the introducing header lines state Visual Studio 2008 and not Visual Studio 2002 7.0.

First two lines of generated solution file:
Microsoft Visual Studio Solution File, Format Version 10.00
# Visual Studio 2008

Expected and correct lines would be:
Microsoft Visual Studio Solution File, Format Version 7.00
# Visual Studio 2002

CMake -G "Visual Studio 7"
No tags attached.
Issue History
2011-01-03 16:40MaddesNew Issue
2011-01-03 17:18Bill HoffmanNote Added: 0024369
2011-01-03 17:18Bill HoffmanAssigned To => Bill Hoffman
2011-01-03 17:18Bill HoffmanStatusnew => assigned
2011-01-04 14:58MaddesNote Added: 0024401
2011-01-04 15:42Bill HoffmanStatusassigned => closed
2011-01-04 15:42Bill HoffmanResolutionopen => no change required

Notes
(0024369)
Bill Hoffman   
2011-01-03 17:18   
Can you show the output of the cmake run and attache the CMakeCache.txt file? One thing to try would be to remove the build tree, and try again. If you have already picked the generator, CMake will not switch it.
(0024401)
Maddes   
2011-01-04 14:58   
You are right, there must have been a left over.
Made sure that everything was deleted and re-generated, now the solution file was valid.
Sorry for the inconvenience.