Skip to content

ExternalProject: Express per-config step stamp file paths using CONFIG genex

Brad King requested to merge brad.king/cmake:ExternalProject-stamp-genex into master

The ExternalProject module has long used the generator-specific placeholder in the ${CMAKE_CFG_INTDIR} variable to express per-config stamp file paths in multi-config generators. Now that most generators support generator expressions in custom command outputs, we can use the $<CONFIG> genex instead.

In particular, this fixes cross-config BUILD_BYPRODUCTS with the Ninja Multi-Config generator.

Fixes: #23595 (closed)
Backport: release

Edited by Brad King

Merge request reports