PCH: Support generator expressions in PRECOMPILE_HEADERS_REUSE_FROM
I would like to have a configuration in Visual Studio which reuses a single precompiled header compiled in target PrecompiledHeader
and another configuration which doesn't reuse the precompiled header. My attempt to use generator expressions failed, e.g.:
target_precompile_headers(MyTarget REUSE_FROM $<$<CONFIG:PCH>:PrecompiledHeader>)
The error message is:
PRECOMPILE_HEADERS_REUSE_FROM set with non existing target
Is there a way to achieve this or is it possible to add generator expression support to PRECOMPILE_HEADERS_REUSE_FROM
?
Edited by Brad King