When I issue the command ExternalData_Expand_Arguments
with a REGEX
argument to match multiple files, I was expecting to get all matched files as a return argument, but it returns the directory on which the REGEX
operates. Of course, the ExternalData module is aware of all files matched, because during make MY_DATA
these files are downloaded correctly.
How do I get the list of matched files at configure time?
ExternalData_Expand_Arguments(
MY_DATA,
_dataFiles,
DATA{${CMAKE_CURRENT_SOURCE_DIR}/grids/,REGEX:.*cgns}}
)
message("_dataFiles => ${_dataFiles}")
and the output is
_dataFiles => /path/to/current/source/dir/grids
I expected the following
_dataFiles => /path/to/current/source/dir/grids/grid1.cgns;/path/to/current/source/dir/grids/grid2.cgns;/path/to/current/source/dir/grids/grid3.cgns