|
|
@@ -80,7 +80,10 @@ std::vector<std::string> prepareFilesPathsForTree(
|
|
|
prepared.reserve(filesPaths.size());
|
|
|
|
|
|
for (auto const& filePath : filesPaths) {
|
|
|
- prepared.push_back(prepareFilePathForTree(filePath, currentSourceDir));
|
|
|
+ // If provided file path is actually not a file, silently ignore it.
|
|
|
+ if (cmSystemTools::FileExists(filePath, /*isFile=*/true)) {
|
|
|
+ prepared.push_back(prepareFilePathForTree(filePath, currentSourceDir));
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
return prepared;
|