VS: VS_USER_PROPS should allow multiple property sheets
Currently you can add the following to your CMakeLists.txt
set_target_properties(target_name PROPERTIES VS_USER_PROPS "A.props")
which results in the following in the generated vcxproj
file
<ImportGroup Label="PropertySheets">
<Import Project="...\A.props" Condition="exists('...\A.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
which is great. However if you try to add two
set_target_properties(target_name PROPERTIES VS_USER_PROPS "A.props")
set_target_properties(target_name PROPERTIES VS_USER_PROPS "B.props")
you see
<ImportGroup Label="PropertySheets">
<Import Project="...\B.props" Condition="exists('...\B.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
so only the last one gets added. This issue is to request that you can add multiple property sheets so you would see
<ImportGroup Label="PropertySheets">
<Import Project="...\A.props" Condition="exists('...\A.props')" Label="LocalAppDataPlatform" />
<Import Project="...\B.props" Condition="exists('...\B.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
Note they appear in the vcxproj
file in the in the order in which they appear in the CMakelists.txt