Notes |
|
(0018613)
|
Jack Whitehead
|
2009-11-29 15:46
|
|
I came across this problem too and have realised what the problem is. The *.filters file generator simply needs to declare a separate filter for those groups that have no files. For example:
# Foo group is empty (i.e. it has no files directly):
source_group( Foo\\Bar FILES main.cpp )
There needs to be the following in the .filters file:
<Filter Include="Foo">
<UniqueIdentifier>{ %GUID% }</UniqueIdentifier>
</Filter>
In addition to this (which is currently being generated)
<Filter Include="Foo\Bar">
<UniqueIdentifier>{ %GUID% }</UniqueIdentifier>
</Filter> |
|
|
(0018795)
|
chrislu
|
2009-12-10 11:26
|
|
|
|
(0019640)
|
chrislu
|
2010-02-26 06:57
|
|
confirmed for Visual Studio 2010 RC1 |
|
|
(0020164)
|
chrislu
|
2010-04-13 14:48
|
|
confirmed with Visual Studio 2010 final version!
This is a show stopper, completely unusable. |
|
|
(0020659)
|
cbielow
|
2010-05-08 06:56
|
|
I can confirm this too:
VS 2010 RC1 10.0.30128.1 |
|
|
(0020662)
|
cbielow
|
2010-05-08 07:21
|
|
|
|
(0020792)
|
chrisw
|
2010-05-19 16:22
(edited on: 2010-05-19 16:26) |
|
Hi,
I created a patch to fix this (actually at least half of the credit goes to Jack Whitehead who figured this out).
/edit:
See 9863.patch. I just realized I accidentally added an unnecessary "#include <algorithm>", unfortunately I can't seem to withdraw and re-upload my attachment.
|
|
|
(0020801)
|
chrisw
|
2010-05-20 09:59
|
|
Looks like my patch doesn't always work. I guess I'll look into this next weekend. |
|
|
(0020830)
|
chrisw
|
2010-05-26 15:53
|
|
I think I got it now, just a dumb mistake on my part. Uploaded an amended version of my patch -> chrisw_9863_2.patch |
|
|
(0020933)
|
chrisw
|
2010-06-07 13:45
|
|
Anyone interested in reviewing my patch? |
|
|
(0020985)
|
cbielow
|
2010-06-10 16:39
(edited on: 2010-06-10 16:41) |
|
I used
git clone -b release git://cmake.org/cmake.git [^] CMakeRel
then applied your patch (required some conflict resolution but 'AddMissingSourceGroups(groupsUsed, sourceGroups);' is unchanged)
and compiled CMake.
WORKS LIKE A CHARM!
(Win7 64bit, VS2010 10.0.30128.1 RC1Rel)
(I'll attach the new patch [diff.patch] in case its needed. I really don't know in which branch it belongs)
|
|
|
(0020986)
|
chrisw
|
2010-06-10 16:56
|
|
Thanks for your feedback. Looks like I forgot to mention that my patch (chrisw_9863_2.patch) belongs to tag v2.8.1 - sorry about that. |
|
|
(0020996)
|
Brad King
|
2010-06-11 16:04
|
|
|