PATH:RELATIVE_PATHΒΆ

Added in version 3.24.

This generator expression belongs to the Path Transformations family. See that section for related generator expressions.

$<PATH:RELATIVE_PATH,path...,base_directory>

Returns path, modified to make it relative to the base_directory argument.

See cmake_path(RELATIVE_PATH) for more details.

Changed in version 3.27: CMake now accepts a list of paths as argument. When a list of paths is specified, the operation will be applied to each path.