Skip to content

Conversation

@jonasehrlich
Copy link

@jonasehrlich jonasehrlich commented Oct 17, 2025

Previously, multi-config generators were detected by the value of the CMAKE_CFG_INTDIR variable. If a multi-config generator was detected, the CMAKE_CFG_INTDIR was included.

This has different values from the $ generator expression into which the ExternalUtil.hpp file is generated for each configuration.

This change uses CMAKE_CONFIGURATION_TYPES for multi-config generator detection and provides a more robust dependency handling for the generated files. Additionally it uses the $<CONFIG> generator expression to set the include directory for multi-config generators.

Closes #3314

Previously, multi-config generators were detected by the value of the
`CMAKE_CFG_INTDIR` variable. If a multi-config generator was detected,
the CMAKE_CFG_INTDIR was included.

This has different values from the $<CONFIG> generator expression into
which the ExternalUtil.hpp file is generated for each configuration.

This change uses `CMAKE_CONFIGURATION_TYPES` for multi-config generator
detection and provides a more robust dependency handling for the
generated files. Additionally it uses the `$<CONFIG>` generator
expression to set the include directory for multi-config generators.

See onnx#3314

Signed-off-by: Jonas Ehrlich <[email protected]>
@jenkins-droid
Copy link
Collaborator

Can one of the admins verify this patch?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Build fails with Ninja multi-config generator

2 participants