MantisBT - CMake
View Issue Details
0010154CMakeCMakepublic2010-01-16 03:392010-06-11 16:05
Matthäus G. Chajdas 
 
normalminoralways
closedduplicate 
CMake-2-8 
 
0010154: Visual Studio 2010 source groups are not generated correctly for nested sources
I have a file in src/platform/win, and I want to generate the source groups platform/win to put the file into (see vs2008-screenshot.) With the VS2010 generator, they are incorrectly put into the same level.

See test.vcxproj and test-original.vcxproj for how the filters are generated (original) and how they should be. For VS2010, the filters should be generated for each level like this:

<ItemGroup>
    <Filter Include="Source files">
      <UniqueIdentifier>{6ad2c40d-6a19-4aba-9ba7-a2dfb3b4af41}</UniqueIdentifier>
    </Filter>
    <Filter Include="Source files\platform">
      <UniqueIdentifier>{bbad2419-1987-4258-8a58-d3907e985742}</UniqueIdentifier>
    </Filter>
    <Filter Include="Source files\platform\win">
      <UniqueIdentifier>{d8a9efd7-e1a6-422f-86d2-f96188e4f4c9}</UniqueIdentifier>
    </Filter>
  </ItemGroup>

The attached example program (test.zip) shows the problem.
No tags attached.
duplicate of 0009863closed Brad King source_groups not (always) working for Visual Studio 10 beta2 
zip test.zip (1,178) 2010-01-16 03:39
https://public.kitware.com/Bug/file/2778/test.zip
? Test.vcxproj.filters (1,035) 2010-01-16 03:39
https://public.kitware.com/Bug/file/2779/Test.vcxproj.filters
? Test-original.vcxproj.filters (1,082) 2010-01-16 03:39
https://public.kitware.com/Bug/file/2780/Test-original.vcxproj.filters
png vs2008-screenshot.png (7,842) 2010-01-16 03:39
https://public.kitware.com/Bug/file/2781/vs2008-screenshot.png
png

png vs2010-screenshot.png (7,435) 2010-01-16 03:39
https://public.kitware.com/Bug/file/2782/vs2010-screenshot.png
png
Issue History
2010-01-16 03:39Matthäus G. ChajdasNew Issue
2010-01-16 03:39Matthäus G. ChajdasFile Added: test.zip
2010-01-16 03:39Matthäus G. ChajdasFile Added: Test.vcxproj.filters
2010-01-16 03:39Matthäus G. ChajdasFile Added: Test-original.vcxproj.filters
2010-01-16 03:39Matthäus G. ChajdasFile Added: vs2008-screenshot.png
2010-01-16 03:39Matthäus G. ChajdasFile Added: vs2010-screenshot.png
2010-05-08 07:20cbielowNote Added: 0020660
2010-06-11 16:04Brad KingRelationship addedduplicate of 0009863
2010-06-11 16:05Brad KingStatusnew => closed
2010-06-11 16:05Brad KingResolutionopen => duplicate

Notes
(0020660)
cbielow   
2010-05-08 07:20   
identical to
http://www.cmake.org/Bug/view.php?id=10555 [^]
and
http://www.cmake.org/Bug/view.php?id=9863 [^]