[CMake] How to exclude empty dirs from install

Brian Davis bitminer at gmail.com
Thu Jul 22 10:56:08 EDT 2010


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/ DESTINATION share/myproj
          PATTERN "CVS" EXCLUDE
          PATTERN "scripts/*"
          PERMISSIONS OWNER_EXECUTE OWNER_WRITE OWNER_READ
                      GROUP_EXECUTE GROUP_READ)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20100722/79aab992/attachment.htm>


More information about the CMake mailing list