From a85980c52496306f8f4ac885a3e9da81d0c7179d Mon Sep 17 00:00:00 2001 From: Jason Perkins Date: Tue, 20 Aug 2013 10:47:23 -0400 Subject: Find PCH on include dirs even if project has a location set --- tests/actions/make/test_make_pch.lua | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'tests') diff --git a/tests/actions/make/test_make_pch.lua b/tests/actions/make/test_make_pch.lua index 75d9d9d..4664661 100644 --- a/tests/actions/make/test_make_pch.lua +++ b/tests/actions/make/test_make_pch.lua @@ -85,6 +85,7 @@ $(GCH): $(PCH) ]] end + -- -- Ensure that PCH is included on all files that use it. -- @@ -101,3 +102,19 @@ $(OBJDIR)/main.o: main.cpp ]] 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" } + prepare() + _.pchconfig(cfg) + test.capture [[ + PCH = ../../src/host/premake.h + ]] + end -- cgit v1.2.3