Add test for PCH location on include dirs when project has a location set

This commit is contained in:
Jason Perkins 2013-08-20 10:50:07 -04:00
parent 3b8a115db8
commit dcf2da2cde

View File

@ -115,3 +115,20 @@ $(GCH): $(PCH)
endif
]]
end
--
-- If the header is located on one of the include file
-- search directories, it should get found automatically.
--
function suite.findsPCH_onIncludeDirs()
location "MyProject"
pchheader "premake.h"
includedirs { "../src/host" }
prepareVars()
test.capture [[
PCH = ../../src/host/premake.h
]]
end