From dcf2da2cde5a659416497a394ff9de683e4785da Mon Sep 17 00:00:00 2001 From: Jason Perkins Date: Tue, 20 Aug 2013 10:50:07 -0400 Subject: [PATCH] Add test for PCH location on include dirs when project has a location set --- tests/actions/make/cpp/test_make_pch.lua | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/tests/actions/make/cpp/test_make_pch.lua b/tests/actions/make/cpp/test_make_pch.lua index b15e32b6..0bf56777 100644 --- a/tests/actions/make/cpp/test_make_pch.lua +++ b/tests/actions/make/cpp/test_make_pch.lua @@ -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