[cmake-developers] [CMake 0015561]: file COPY FILES_MATCHING PATTERN copies folders' structure

Mantis Bug Tracker mantis at public.kitware.com
Fri May 8 09:00:17 EDT 2015


The following issue has been SUBMITTED. 
====================================================================== 
http://www.cmake.org/Bug/view.php?id=15561 
====================================================================== 
Reported By:                Wojciech Mamrak
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   15561
Category:                   CMake
Reproducibility:            always
Severity:                   minor
Priority:                   high
Status:                     new
====================================================================== 
Date Submitted:             2015-05-08 09:00 EDT
Last Modified:              2015-05-08 09:00 EDT
====================================================================== 
Summary:                    file COPY FILES_MATCHING PATTERN copies folders'
structure
Description: 
This command:

file(COPY "src/" DESTINATION "dst" FILES_MATCHING PATTERN "*.bat")

copies not only all *.bat files from src to dst, but also folders' structure.
For example, if src is:
src:
 - foo.bat
 - bar.bat
 - images [folder]
   - foo.png
   - bar [folder]

then after calling the command, dst is:
dst:
 - foo.bat
 - bar.bat
 - images [folder]
   - bar [folder]
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2015-05-08 09:00 Wojciech MamrakNew Issue                                    
======================================================================



More information about the cmake-developers mailing list