[CMake] install(DIRECTORY . DESTINATION include/proj FILES_MATCHING PATTERN "*.h")

Tyler Roscoe tyler at cryptio.net
Wed Oct 28 11:10:53 EDT 2009


On Wed, Oct 28, 2009 at 02:49:25PM +0100, Mathieu Malaterre wrote:
> install(DIRECTORY . DESTINATION include/proj FILES_MATCHING PATTERN "*.h")
> 
> but it is installing the '.svn' subdir as part of the installation.

Is it creating .svn but not putting any files in it (unless they match
*.h, which I believe no files in a .svn directory ever will)? If so,
this is what I expect.

I would just add 'EXCLUDE ".svn"' to your instal() rules.

tyler


More information about the CMake mailing list