file(GET_RUNTIME_DEPENDENCIES ...) is less powerfull than deprecated GetPrerequisites: exclude system libs
GetPrerequisites
is deprecated since CMake 3.16, suggesting the users to use file(GET_RUNTIME_DEPENDENCIES ...)
instead. The problem is that GET_PREREQUISITES
has an <exclude_system>
option, but file(GET_RUNTIME_DEPENDENCIES ...)
doesn't. This seems like a "regression" in functionality. For windows I worked around it with a POST_EXCLUDE_REGEXES
to exclude System32
on Windows, but this really doesn't seem a good option.
I think we should get <exclude_system>
in file(GET_RUNTIME_DEPENDENCIES ...)
.
Thanks.