Re: [CMake] INSTALL DIRECTORY patterns highly confusing

2014-10-16 Thread Dan Kegel
Of course. The problem comes when somebody is used to languages that encourage single-quoted strings (e.g. python or shell) or which have tight syntax and abort on mistakes like this. This lack of early feedback coupled with the terse doc and strange semantics means that when something doesn't wo

Re: [CMake] INSTALL DIRECTORY patterns highly confusing

2014-10-16 Thread Petr Kmoch
Hi Dan. Single quotes have no special meaning in CMake syntax, so it was literally treating them as part of the pattern. This is not special to the install() command in any way, it's just how CMake works. Petr On Thu, Oct 16, 2014 at 4:13 AM, Dan Kegel wrote: > > This turned out to work for me

Re: [CMake] INSTALL DIRECTORY patterns highly confusing

2014-10-15 Thread Dan Kegel
> This turned out to work for me: > > install ( > DIRECTORY ${samples_SOURCE_DIR} > DESTINATION "src" > PATTERN "*.in" EXCLUDE > PATTERN ".gitignore" EXCLUDE > ) Here's one of my earlier attempts: PATTERN '*.in' EXCLUDE PATTERN 'CMakeLists.txt' EXCLUDE Is it possible that single qu

Re: [CMake] INSTALL DIRECTORY patterns highly confusing

2014-10-15 Thread Dan Kegel
On Wed, Oct 15, 2014 at 6:49 PM, Dan Kegel wrote: > The doc could use some more examples. I am having a hard > time figuring out how to install a directory tree but exclude > files matching .gitignore and Makefile.in. This turned out to work for me: install ( DIRECTORY ${samples_SOURCE_DIR}

[CMake] INSTALL DIRECTORY patterns highly confusing

2014-10-15 Thread Dan Kegel
The doc could use some more examples. I am having a hard time figuring out how to install a directory tree but exclude files matching .gitignore and Makefile.in. -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware