PATH:REPLACE_FILENAME

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

Syntax

$<PATH:REPLACE_FILENAME,path...,input>

Added in version 3.24.

Returns path with the filename component replaced by input. If path has no filename component (i.e. $<PATH:HAS_FILENAME> returns 0), path is unchanged.

See cmake_path(REPLACE_FILENAME) for more details.