PATH:REPLACE_EXTENSION

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

Syntax

$<PATH:REPLACE_EXTENSION[,LAST_ONLY],path...,input>

Added in version 3.24.

Returns path with the extension replaced by input, if any.

See cmake_path(REPLACE_EXTENSION) for more details.