diff --git a/src/actions/vstudio/vs2010_vcxproj.lua b/src/actions/vstudio/vs2010_vcxproj.lua index 67b902b8..ce5d0856 100644 --- a/src/actions/vstudio/vs2010_vcxproj.lua +++ b/src/actions/vstudio/vs2010_vcxproj.lua @@ -660,7 +660,7 @@ m.element("Command", condition, '%s', commands) local outputs = project.getrelative(prj, filecfg.buildoutputs) - m.element("Outputs", condition, '%s', table.concat(outputs, " ")) + m.element("Outputs", condition, '%s', table.concat(outputs, ";")) if filecfg.buildmessage then m.element("Message", condition, '%s', filecfg.buildmessage) diff --git a/tests/actions/vstudio/vc2010/test_files.lua b/tests/actions/vstudio/vc2010/test_files.lua index 844c2460..dbfbf77f 100755 --- a/tests/actions/vstudio/vc2010/test_files.lua +++ b/tests/actions/vstudio/vc2010/test_files.lua @@ -102,6 +102,25 @@ ]] end + function suite.customBuild_onBuildRuleMultipleBuildOutputs() + files { "hello.cg" } + filter "files:**.cg" + buildcommands { "cgc $(InputFile)" } + buildoutputs { "$(InputName).a", "$(InputName).b" } + prepare() + test.capture [[ + + + Document + cgc $(InputFile) + $(InputName).a;$(InputName).b + cgc $(InputFile) + $(InputName).a;$(InputName).b + + + ]] + end + function suite.customBuild_onBuildRuleWithMessage() files { "hello.cg" } filter "files:**.cg"