Re: [CMake] How to exclude empty dirs from install

2010-07-26 Thread Alexander Neundorf
On Friday 23 July 2010, Brian Davis wrote: > --snip-- > Because if they were excluded, we would have someone on the list next > month asking why she can't create empty directories with install() > commands. > --end snip-- > > True point taken. Then we would have 2 people who are correct ... Olaf a

Re: [CMake] How to exclude empty dirs from install

2010-07-23 Thread Brian Davis
--snip-- Because if they were excluded, we would have someone on the list next month asking why she can't create empty directories with install() commands. --end snip-- True point taken. Then we would have 2 people who are correct ... Olaf and this said hypothetic other person. With software th

Re: [CMake] How to exclude empty dirs from install

2010-07-22 Thread Olaf van der Spek
On Thu, Jul 22, 2010 at 7:43 PM, Tyler Roscoe wrote: > On Thu, Jul 22, 2010 at 04:57:50PM +0200, Olaf van der Spek wrote: >> Why aren't empty dirs excluded by default? > > Because if they were excluded, we would have someone on the list next > month asking why she can't create empty directories wi

Re: [CMake] How to exclude empty dirs from install

2010-07-22 Thread Tyler Roscoe
On Thu, Jul 22, 2010 at 04:57:50PM +0200, Olaf van der Spek wrote: > Why aren't empty dirs excluded by default? Because if they were excluded, we would have someone on the list next month asking why she can't create empty directories with install() commands. tyler

Re: [CMake] How to exclude empty dirs from install

2010-07-22 Thread Brian Davis
>>>True, but note the "*.h" filter. After the filter, the dir is empty, so it doesn't make any sense to create it at install time. Yep I tried it and as you say .svn appears even though the "filter" should grab .h files So I echo Olafs's question why is .svn dir grabed when .h filter should be en

Re: [CMake] How to exclude empty dirs from install

2010-07-22 Thread Olaf van der Spek
On Thu, Jul 22, 2010 at 5:05 PM, Brian Davis wrote: >>> It does, but should not be necessary. Why aren't empty dirs excluded by >>> default? > > svn directory is not empty.. it is hidden, but not empty... at least it True, but note the "*.h" filter. After the filter, the dir is empty, so it doesn

Re: [CMake] How to exclude empty dirs from install

2010-07-22 Thread Brian Davis
>> It does, but should not be necessary. Why aren't empty dirs excluded by default? svn directory is not empty.. it is hidden, but not empty... at least it shouldn't be if the svn is working correctly. I am probably missing something here and should give this a try myself as I currently am using

Re: [CMake] How to exclude empty dirs from install

2010-07-22 Thread Olaf van der Spek
On Thu, Jul 22, 2010 at 4:56 PM, Brian Davis wrote: > You could switch to git :-) so there are not all these .svn dirs splatted > all over the tree... One of the many things I hate about svn and love about > git.  But in all seriousness try using the PATTERN "svn" EXCLUDE.  I have > not used this,

Re: [CMake] How to exclude empty dirs from install

2010-07-22 Thread Brian Davis
You could switch to git :-) so there are not all these .svn dirs splatted all over the tree... One of the many things I hate about svn and love about git. But in all seriousness try using the PATTERN "svn" EXCLUDE. I have not used this, let me know if it works. install(DIRECTORY icons scripts/

[CMake] How to exclude empty dirs from install

2010-07-22 Thread Olaf van der Spek
Hi, install(DIRECTORY xbt DESTINATION include FILES_MATCHING PATTERN "*.h") install(TARGETS xbt DESTINATION lib) How do I exclude empty dirs, like .svn from being created? Why is it necessary to specify DESTINATION lib? Can't it use a default? Olaf __