Skip to content

Refactor relative path conversion helpers

Brad King requested to merge brad.king/cmake:relative-paths into master

Conversion of paths relative to the build tree is used for build system generation. Move the helpers from cmLocalGenerator up to cmOutputConverter, and migrate the implementations out of cmStateDirectory.

Conversion of paths relative to the source tree is only used for backtraces (and one place for object file name generation). These do not need to use the generator-wide relative path conversion rules because we are not actually generating a relative path for the build system that needs to be consistent with anything else. Port them to dedicated logic.

Follows !6122 (merged).

Merge request reports