MantisBT - CMake
View Issue Details
0011633CMakeCMakepublic2010-12-20 10:482011-01-12 08:02
Petr Petrov 
Brad King 
highblockalways
closedfixed 
Microsoft Visual C++ 2008Windows Vista6.0
CMake 2.8.3 
CMake 2.8.4CMake 2.8.4 
0011633: Incorrect generator for VC2008
Please download the latest night build of cmake.
I have used the following: http://www.cmake.org/files/dev/cmake-2.8.3.20101217-gbed32-win32-x86.exe [^]

Using provided trivial example try to generate VC2008 project files.

Then try build by vcbuild.exe program, such as:
vcbuild.exe Test.sln

VCBuild.exe utility shows the following error:
Error: project 'ZERO_CHECK.vcproj' could not be found...

I think that this problem of VC2008 or vcbuild.exe utility from VC2008 - it DOES NOT support full project paths in .sln files.

This problem relates to the following bug - http://public.kitware.com/Bug/view.php?id=11598, [^]
which was fixed by Brad King. In this fix the full project file paths are written into solution\project files. It is OK for VC2010 generator, by for VC2008 generator it causes additional problems.

I think that this patch should be applied only for VS2010 generator, not for VS2008 generator. VC2008 generator should generate project's paths from the current directory ".\SomePath" and etc (as before http://public.kitware.com/Bug/view.php?id=11598 [^] fix).
1) Unpack the provided .zip archive with test example (very simple example)
2) Generate VC2008 project files, by the following cmake version - http://www.cmake.org/files/dev/cmake-2.8.3.20101217-gbed32-win32-x86.exe [^]
3) Try to build by vcbuild.exe utility, such as vcbuild.exe TestPetrPetrov.sln
4) You will see the error message, the project building will be stop
Thanks to Brad King for fixing bugs!
No tags attached.
related to 0011594closed Brad King Incorrect generator for VC2010 
zip cmake_small_test.zip (556) 2010-12-20 10:48
https://public.kitware.com/Bug/file/3588/cmake_small_test.zip
Issue History
2010-12-20 10:48Petr PetrovNew Issue
2010-12-20 10:48Petr PetrovFile Added: cmake_small_test.zip
2010-12-20 10:53Bill HoffmanAssigned To => Brad King
2010-12-20 10:53Bill HoffmanStatusnew => assigned
2010-12-20 11:09Brad KingRelationship addedrelated to 0011598
2010-12-20 11:13Brad KingRelationship addedrelated to 0011594
2010-12-20 11:14Brad KingRelationship deletedrelated to 0011598
2010-12-20 11:14Brad KingNote Added: 0024283
2010-12-20 12:42Brad KingNote Added: 0024286
2010-12-20 12:42Brad KingStatusassigned => closed
2010-12-20 12:42Brad KingResolutionopen => fixed
2011-01-12 08:02David ColeFixed in Version => CMake 2.8.4
2011-01-12 08:02David ColeTarget Version => CMake 2.8.4

Notes
(0024283)
Brad King   
2010-12-20 11:14   
It's the fix to 0011594 that caused this, not 11598.
(0024286)
Brad King   
2010-12-20 12:42   
I reverted the bug fix that caused this:

  http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=42a2e9d9 [^]

and re-opened the original bug.