Add test for PCH location on include dirs when project has a location set
This commit is contained in:
parent
3b8a115db8
commit
dcf2da2cde
@ -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
|
||||
|
Reference in New Issue
Block a user