<p dir="ltr">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.</p>
<p dir="ltr">This lack of early feedback coupled with the terse doc and strange semantics means that when something doesn't work, the user has a hard time figuring out what kind of mistake he made.  <br>
</p>
<div class="gmail_quote">Am 16.10.2014 00:25 schrieb "Petr Kmoch" <<a href="mailto:petr.kmoch@gmail.com">petr.kmoch@gmail.com</a>>:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Dan.<br><br>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.<br><br>Petr<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Oct 16, 2014 at 4:13 AM, Dan Kegel <span dir="ltr"><<a href="mailto:dank@kegel.com" target="_blank">dank@kegel.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>> This turned out to work for me:<br>
><br>
> install (<br>
>   DIRECTORY ${samples_SOURCE_DIR}<br>
>   DESTINATION "src"<br>
>   PATTERN "*.in" EXCLUDE<br>
>   PATTERN ".gitignore" EXCLUDE<br>
> )<br>
<br>
</span>Here's one of my earlier attempts:<br>
<br>
   PATTERN '*.in' EXCLUDE<br>
   PATTERN 'CMakeLists.txt' EXCLUDE<br>
<br>
Is it possible that single quotes cause silent failure?  Maybe those<br>
could be flagged as likely errors.<br>
<div><div>--<br>
<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Kitware offers various services to support the CMake community. For more information on each offering, please visit:<br>
<br>
CMake Support: <a href="http://cmake.org/cmake/help/support.html" target="_blank">http://cmake.org/cmake/help/support.html</a><br>
CMake Consulting: <a href="http://cmake.org/cmake/help/consulting.html" target="_blank">http://cmake.org/cmake/help/consulting.html</a><br>
CMake Training Courses: <a href="http://cmake.org/cmake/help/training.html" target="_blank">http://cmake.org/cmake/help/training.html</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/cmake" target="_blank">http://public.kitware.com/mailman/listinfo/cmake</a><br>
</div></div></blockquote></div><br></div>
</blockquote></div>