VS_CONFIGURATION_TYPE should support generator expressions
The value of VS_CONFIGURATION_TYPE is used to override the ConfigurationType property in Visual Studio projects and is written for each configuration. However CMake does not allow to configure the ConfigurationType based on the active configuration, e.g.
$<$<CONFIG:MyCfg>:Utility>. I cannot see a reason why VS_CONFIGURATION_TYPE should not support generator expressions.
Background: I'm linking a specific target only in special configurations. This is done with a generator expression in the call to
target_link_libraries(). It works, but the target is still built in all configurations, even if not needed. Changing the ConfigurationType property to Utility for these special configurations would allow to only build this specific target with the Visual Studio generators.