MantisBT - CMake
View Issue Details
0011207CMakeCMakepublic2010-09-04 13:172010-11-09 22:57
Alexander Todorov 
David Cole 
normalmajoralways
closedduplicate 
CMake-2-8 
CMake 2.8.3CMake 2.8.3 
0011207: CMake 2.8 does not generate output target name properly for VS 2010 generator.
CMake 2.8 does not generate output target name properly for VS 2010 generator when there is '.' character in the file name.

Example:

add_library(My.Library STATIC ${SOURCE_FILES} ${HEADER_FILES} ${RESOURCE_FILES})

# Explicitly setting allso does NOT work
set_target_properties(My.Library PROPERTIES OUTPUT_NAME "My.Library")
set_target_properties(My.Library PROPERTIES SUFFIX ".lib")

In this scenario the generated output file is:
/OUT:"...\My.Library\Debug\My.lib" /NOLOGO

Instead of:
/OUT:"...\My.Library\Debug\My.Library.lib" /NOLOGO

Projects that depend on the My.Library target are trying to link with "My.Library.lib" resulting in a link error:

LINK : fatal error LNK1104: cannot open file '..\My.Library\Debug\My.Library.lib'
File names could contain the '.' character in CMake 2.6 using the VS 2008 generator.
No tags attached.
duplicate of 0010611closed David Cole VS2010 generator doesn't handle executable names with periods. 
Issue History
2010-09-04 13:17Alexander TodorovNew Issue
2010-09-06 11:16David ColeStatusnew => assigned
2010-09-06 11:16David ColeAssigned To => David Cole
2010-09-06 11:16David ColeStatusassigned => resolved
2010-09-06 11:16David ColeResolutionopen => duplicate
2010-09-06 11:16David ColeRelationship addedduplicate of 0010611
2010-10-06 14:14David ColeFixed in Version => CMake 2.8.3
2010-10-06 14:14David ColeTarget Version => CMake 2.8.3
2010-11-09 22:57Philip LowmanStatusresolved => closed

There are no notes attached to this issue.