View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0012002CMakeCMakepublic2011-03-22 13:152011-06-18 07:38
ReporterJohan Björk 
Assigned ToBrad King 
PrioritynormalSeveritymajorReproducibilityalways
StatusclosedResolutionfixed 
PlatformApple MacOSOS XOS Version10.4.10
Product VersionCMake 2.8.4 
Target VersionCMake 2.8.5Fixed in VersionCMake 2.8.5 
Summary0012002: CMake generator expressions does not allow dots in target names
DescriptionCMake fails with "Expression syntax not recognized." when there is a dot in the target name


Steps To ReproduceFollowing cmake file:

CMAKE_MINIMUM_REQUIRED (VERSION 2.8.4)
ADD_EXECUTABLE(foo.bar bar.c)
ADD_CUSTOM_COMMAND(TARGET foo.bar
POST_BUILD
COMMAND cmake -E echo $<TARGET_FILE:foo.bar>
)
Additional Informationcmake version:
cmake version 2.8.4.20110318-g86210
TagsNo tags attached.
Attached Files

 Relationships
has duplicate 0012380closed target names with dots in them not alowed in generator expressions. 

  Notes
(0025863)
Johan Björk (reporter)
2011-03-22 13:15

You can work around the issue by using OUTPUT_NAME target property and naming your target something else.
(0025871)
Brad King (manager)
2011-03-22 16:30

Simply an oversight, thanks:

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

 Issue History
Date Modified Username Field Change
2011-03-22 13:15 Johan Björk New Issue
2011-03-22 13:15 Johan Björk Note Added: 0025863
2011-03-22 16:24 Brad King Assigned To => Brad King
2011-03-22 16:24 Brad King Status new => assigned
2011-03-22 16:30 Brad King Note Added: 0025871
2011-03-22 16:30 Brad King Status assigned => closed
2011-03-22 16:30 Brad King Resolution open => fixed
2011-06-18 07:38 David Cole Fixed in Version => CMake 2.8.5
2011-06-18 07:38 David Cole Target Version => CMake 2.8.5
2011-08-02 09:40 Brad King Relationship added has duplicate 0012380


Copyright © 2000 - 2018 MantisBT Team