install(DIRECTORY..) that create empty folder with file_matching
When using install directory with PATTERN if there are some folders that don't contain files following the given PATTERN they are also created as empty folders.
Source Directory Structure
data/target.xml
data/subdata/compile.json
Install command:
install ( DIRECTORY data DESTINATION ${install_directory}/incl FILES_MATCHING PATTERN *.xml )
Install Structure
incl/data/target.xml
incl/data/subdata/ -> empty directory!
Best regards, Jeremy