PATH:RELATIVE_PATH

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

Syntax

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

Added in version 3.24.

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

See cmake_path(RELATIVE_PATH) for more details.