Files
CMake/Tests/RunCMake/include_external_msproject/CustomConfig-check-slnx.cmake
T
Brad King 7c284f4278 VS: Fix SLNX with multiple solution-to-project configuration mappings
Filter each mapping to apply only to its intended solution-wide config.

Fixes: #27385
2025-11-13 12:01:51 -05:00

27 lines
1.1 KiB
CMake

RunCMake_check_slnx("${RunCMake_TEST_BINARY_DIR}/CustomConfig.slnx" [[
^<\?xml version="1\.0" encoding="UTF-8"\?>
<Solution>
<Configurations>
<BuildType Name="Debug"/>
<BuildType Name="Release"/>
<BuildType Name="MinSizeRel"/>
<BuildType Name="RelWithDebInfo"/>
<Platform Name="[^"]+"/>
</Configurations>
<Project Path="ALL_BUILD\.vcxproj" Id="[0-9a-f-]+">
<BuildDependency Project="ZERO_CHECK\.vcxproj"/>
<BuildDependency Project="external.project"/>
<Build Solution="Debug\|\*" Project="false"/>
<Build Solution="Release\|\*" Project="false"/>
<Build Solution="MinSizeRel\|\*" Project="false"/>
<Build Solution="RelWithDebInfo\|\*" Project="false"/>
</Project>
<Project Path="ZERO_CHECK\.vcxproj" Id="[0-9a-f-]+"/>
<Project Path="external.project" Id="aaa-bbb-ccc-000">
<BuildDependency Project="ZERO_CHECK.vcxproj"/>
<BuildType Solution="Release\|\*" Project="Custom - Release"/>
<BuildType Solution="MinSizeRel\|\*" Project="Custom - MinSizeRel"/>
<BuildType Solution="RelWithDebInfo\|\*" Project="Custom - RelWithDebInfo"/>
</Project>
</Solution>$]])