Skip to content

ParseImplicitIncludeInfo: Canonicalize implicit include dirs

Brad King requested to merge brad.king/cmake:implicit-includes into master

The implicit include directory extraction added by !2716 (merged) leaves paths like /usr/lib/../include unchanged. Fix the logic to canonicalize such paths (e.g. to /usr/include) as we do for implicit link directories already. This is important to ensure the set of implicit directories is represented in the same form as the include directories that will be compared to them.

Issue: #19095 (closed)

Merge request reports