[CMake] INSTALL DIRECTORY patterns highly confusing

Dan Kegel dank at kegel.com
Wed Oct 15 22:13:51 EDT 2014


> 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 quotes cause silent failure?  Maybe those
could be flagged as likely errors.


More information about the CMake mailing list