Migration experiences / Comparison RUNTIME_DEPENDENCY_SET vs. fixup_bundle (BundleUtilities)

I just retested this again now and I think I see the problem. While [[.*/system32/.*\.dll]] works for most dependencies, it appears that internally some paths end up with C:\Windows\system32/somedep.dll as the path to compare against. Note the backslash before system32 instead of a forward slash. The CMake documentation doesn’t make any statement about the path separators used when doing the regex matching, so unfortunately projects will have to account for both if they want their regex to work in all cases. I’ll add a note about this in the next edition of Professional CMake. A modified working example of the above would be:

	POST_EXCLUDE_REGEXES
		[[.*(\\|/)system32(\\|/).*\.dll]]
1 Like