[cmake-developers] source_group and generator expressions
Sebastian Holtermann
seblist at xwmw.org
Tue May 16 05:52:04 EDT 2017
Hi, I'm working on a fix for
https://gitlab.kitware.com/cmake/cmake/issues/16460
which requires putting a generator expression into a source group,
namely $<CONFIG>
The background is that
TARGETNAME_autogen/$<CONFIG>/moc_compilation.cpp (and others)
should go into the source_group AUTOGEN_SOURCE_GROUP.
There are two ways to achieve this
1) Put TARGETNAME_autogen/$<CONFIG>/moc_compilation.cpp
into AUTOGEN_SOURCE_GROUP
- Requires gen. exp. support in source_group
2) Manually replace $<CONFIG> for all configurations and put all
variants into the AUTOGEN_SOURCE_GROUP
- Does not require gen. exp. support in source_group
- May flood the source_group with files from an other configurations?
Are source groups even configuration aware?
I'd prefer 1) but does source_group support generator expressions?
-Sebastian
More information about the cmake-developers
mailing list