MantisBT - CMake
View Issue Details
0010639CMakeCMakepublic2010-04-29 05:482011-04-04 12:00
Gabriel Kalkuhl 
David Cole 
normalmajoralways
closedduplicate 
CMake-2-8 
CMake 2.8.3 
0010639: Generating Visual Studio 2010 targets with a dot in its name fails
For Visual Studio 2010 Workspaces, cmake uses the function GetFilenameWithoutExtension() for generating the TargetName property. If your target name contains dots (like target.ora10, target.ora11) the resulting target will be named with the first fragment (target.exe). Different targets could not be distinguished.

solution:
By changing in file cmVisualStudio10TargetGenerator.cxx line 786 from

*this->BuildFileStream << cmSystemTools::GetFilenameWithoutExtension(
to
*this->BuildFileStream << cmSystemTools::GetFilenameWithoutLastExtension(

will resolve the problem.

Please check if you can adopt this patch.

Regards
Gabriel
No tags attached.
duplicate of 0010611closed David Cole VS2010 generator doesn't handle executable names with periods. 
related to 0010040closed David Cole VS2010 generator does not handle project names containing periods ('.') 
Issue History
2010-04-29 05:48Gabriel KalkuhlNew Issue
2010-12-14 18:54David ColeAssigned To => David Cole
2010-12-14 18:54David ColeStatusnew => assigned
2010-12-14 18:55David ColeNote Added: 0024118
2010-12-14 18:55David ColeRelationship addedduplicate of 0010611
2010-12-14 18:55David ColeStatusassigned => resolved
2010-12-14 18:55David ColeFixed in Version => CMake 2.8.3
2010-12-14 18:55David ColeResolutionopen => duplicate
2010-12-14 18:56David ColeRelationship addedrelated to 0010040
2011-04-04 12:00David ColeNote Added: 0026046
2011-04-04 12:00David ColeStatusresolved => closed

Notes
(0024118)
David Cole   
2010-12-14 18:55   
Duplicate bug was already fixed in CMake 2.8.3
(0026046)
David Cole   
2011-04-04 12:00   
Closing resolved issues that have not been updated in more than 3 months.