[Visual Studio] Setting arbitary configuration properties in project file

Is there a way to set arbitrary configuration properties in a Visual Studio project file from CMake?

As a concrete example I would like the following to appear in the generated project file:

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">

There is VS_GLOBAL_<variable>, but this puts the variable in the global properties group, not in a configuration specific group.

Does VS_USER_PROPS help? It is per-target and doesn’t support a CMAKE_VS_USER_PROPS variable, but maybe it can help?

Yes, VS_USER_PROPS does work, thanks :slight_smile: