Commits

Dimitar Trendafilov committed 9793c4c

* better handling of projects with different platforms in a single solution

  • Participants
  • Parent commits 04b6e27

Comments (0)

Files changed (1)

src/actions/vstudio/vs2005_solution.lua

 				local prjcfg = project.getconfig(prj, slncfg.buildcfg, slncfg.platform)
 				if prjcfg then
 					local slnplatform = vstudio.platform(slncfg)
-					local prjplatform = vstudio.projectplatform(prjcfg)
-					local architecture = vstudio.architecture(prjcfg)
+					local prjplatform
+					if prj.external then
+						prjplatform = prjcfg.buildcfg
+					else
+						prjplatform = vstudio.projectplatform(prjcfg)
+					end
+					local architecture = prjcfg.platform or vstudio.architecture(prjcfg)
 					
 					_p(2,'{%s}.%s|%s.ActiveCfg = %s|%s', prj.uuid, slncfg.buildcfg, slnplatform, prjplatform, architecture)
 					_p(2,'{%s}.%s|%s.Build.0 = %s|%s', prj.uuid, slncfg.buildcfg, slnplatform, prjplatform, architecture)