MantisBT - CMake
View Issue Details
0005114CMakeCMakepublic2007-05-31 10:232007-08-24 11:02
mejedi 
Alex Neundorf 
normalminoralways
closedduplicate 
 
 
0005114: Source groups with equal names but nested in different groups merged together
Consider the following atificial CMakeLists.txt (fragment):

SOURCE_GROUP(foo)
SOURCE_GROUP(bar)
SOURCE_GROUP(foo\\files FILES foo.c foo.h)
SOURCE_GROUP(bar\\files FILES bar.c bar.h)

Obviously "foo\\files" and "bar\\files" are different groups, however CMake merges them together when generating project for VC.NET 2003. The result is "files" nested in "foo" with foo.c, foo.h, and bar.c, bar.h in it.

Currently we are appending increasing ordinal numbers to ensure that components of group names are unique to prevent undesired merging.

However mangled group names look very ugly.
No tags attached.
Issue History
2007-08-24 11:02Alex NeundorfNote Added: 0008649
2007-08-24 11:02Alex NeundorfAssigned ToBill Hoffman => Alex Neundorf
2007-08-24 11:02Alex NeundorfStatusassigned => closed
2007-08-24 11:02Alex NeundorfResolutionopen => duplicate

Notes
(0008649)
Alex Neundorf   
2007-08-24 11:02   
Duplicate to 0004057, more comments please over there.