MantisBT - CMake
View Issue Details
0010485CMakeCMakepublic2010-03-30 06:142011-01-12 07:25
Christoph Höger 
Brad King 
normalminoralways
closedfixed 
CMake-2-8 
CMake 2.8.4CMake 2.8.4 
0010485: add_custom_command searches literally for file name targets
When using something like

set(mydir src/)
add_custom_command(OUTPUT ${mydir}/foo

and

add_library(bar ${mydir}/foo)

The file src/foo will not be generated (since the custom command is triggered literally by "src//foo").
Also there is no error reported by cmake about a missing source file src/foo or src//foo.
This means that partially cmake handles filenames by normalizing them somehow and partially not.
I'd suggest applying the normalizing routine to custom commands too.

No tags attached.
related to 0011973closed Brad King double-slashes in paths breaks dependency resolution 
Issue History
2010-03-30 06:14Christoph HögerNew Issue
2010-12-14 18:22David ColeAssigned To => Brad King
2010-12-14 18:22David ColeStatusnew => assigned
2010-12-15 08:51Brad KingNote Added: 0024139
2010-12-15 08:51Brad KingStatusassigned => closed
2010-12-15 08:51Brad KingResolutionopen => fixed
2011-01-12 07:25David ColeFixed in Version => CMake 2.8.4
2011-01-12 07:25David ColeTarget Version => CMake 2.8.4
2011-03-29 18:09Brad KingRelationship addedrelated to 0011973

Notes
(0024139)
Brad King   
2010-12-15 08:51   
Thanks, fixed:

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