View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0011207CMakeCMakepublic2010-09-04 13:172010-11-09 22:57
ReporterAlexander Todorov 
Assigned ToDavid Cole 
PrioritynormalSeveritymajorReproducibilityalways
StatusclosedResolutionduplicate 
PlatformOSOS Version
Product VersionCMake-2-8 
Target VersionCMake 2.8.3Fixed in VersionCMake 2.8.3 
Summary0011207: CMake 2.8 does not generate output target name properly for VS 2010 generator.
DescriptionCMake 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'
Additional InformationFile names could contain the '.' character in CMake 2.6 using the VS 2008 generator.
TagsNo tags attached.
Attached Files

 Relationships
duplicate of 0010611closedDavid Cole VS2010 generator doesn't handle executable names with periods. 

  Notes
There are no notes attached to this issue.

 Issue History
Date Modified Username Field Change
2010-09-04 13:17 Alexander Todorov New Issue
2010-09-06 11:16 David Cole Status new => assigned
2010-09-06 11:16 David Cole Assigned To => David Cole
2010-09-06 11:16 David Cole Status assigned => resolved
2010-09-06 11:16 David Cole Resolution open => duplicate
2010-09-06 11:16 David Cole Relationship added duplicate of 0010611
2010-10-06 14:14 David Cole Fixed in Version => CMake 2.8.3
2010-10-06 14:14 David Cole Target Version => CMake 2.8.3
2010-11-09 22:57 Philip Lowman Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team