Only generate VC'10 .filters file when project has subfolders
This commit is contained in:
parent
d2295fc5d5
commit
95ac073019
@ -7,7 +7,8 @@
|
||||
premake.vstudio.vs2010 = {}
|
||||
local vs2010 = premake.vstudio.vs2010
|
||||
local vstudio = premake.vstudio
|
||||
|
||||
local project = premake.project
|
||||
local tree = premake.tree
|
||||
|
||||
|
||||
---
|
||||
@ -41,9 +42,13 @@
|
||||
else
|
||||
premake.generate(prj, ".vcxproj", vstudio.vc2010.generate)
|
||||
premake.generate(prj, ".vcxproj.user", vstudio.vc2010.generateUser)
|
||||
|
||||
-- Only generate a filters file if the source tree actually has subfolders
|
||||
if tree.hasbranches(project.getsourcetree(prj)) then
|
||||
premake.generate(prj, ".vcxproj.filters", vstudio.vc2010.generateFilters)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user