MantisBT - CMake
View Issue Details
0012002CMakeCMakepublic2011-03-22 13:152011-06-18 07:38
Johan Björk 
Brad King 
normalmajoralways
closedfixed 
Apple MacOS X10.4.10
CMake 2.8.4 
CMake 2.8.5CMake 2.8.5 
0012002: CMake generator expressions does not allow dots in target names
CMake fails with "Expression syntax not recognized." when there is a dot in the target name


Following 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>
)
cmake version:
cmake version 2.8.4.20110318-g86210
No tags attached.
has duplicate 0012380closed  target names with dots in them not alowed in generator expressions. 
Issue History
2011-03-22 13:15Johan BjörkNew Issue
2011-03-22 13:15Johan BjörkNote Added: 0025863
2011-03-22 16:24Brad KingAssigned To => Brad King
2011-03-22 16:24Brad KingStatusnew => assigned
2011-03-22 16:30Brad KingNote Added: 0025871
2011-03-22 16:30Brad KingStatusassigned => closed
2011-03-22 16:30Brad KingResolutionopen => fixed
2011-06-18 07:38David ColeFixed in Version => CMake 2.8.5
2011-06-18 07:38David ColeTarget Version => CMake 2.8.5
2011-08-02 09:40Brad KingRelationship addedhas duplicate 0012380

Notes
(0025863)
Johan Björk   
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   
2011-03-22 16:30   
Simply an oversight, thanks:

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