Skip to content

Commit 224e256

Browse files
authored
KSPCommon.targets: ckan compat add can only take one version at a time (for now)
1 parent fc18b70 commit 224e256

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

KSPCommon.targets

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,10 @@
2222

2323
<!-- Use CKAN to install mods for any references tagged with a CKAN Identifier -->
2424
<Target Name="CKANInstall">
25-
<Exec Command="ckan compat add --headless --gamedir $(KSPROOT) $(CKANCompatibleVersions)" Condition=" '$(CKANCompatibleVersions)' != '' "/>
25+
<ItemGroup>
26+
<CKANCompatibleVersionItems Include="$(CKANCompatibleVersions)"/>
27+
</ItemGroup>
28+
<Exec Command="ckan compat add --headless --gamedir $(KSPROOT) %(CKANCompatibleVersionItems)" Condition=" '$(CKANCompatibleVersions)' != '' "/>
2629
<Exec Command="ckan install --no-recommends --headless --gamedir $(KSPROOT) %(Reference.CKANIdentifier)" Condition=" '%(Reference.CKANIdentifier)' != '' "/>
2730
</Target>
2831
</Project>

0 commit comments

Comments
 (0)