Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/windirstat/premake-4.x-stable.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJason Perkins <starkos@industriousone.com>2013-08-20 18:47:23 +0400
committerJason Perkins <starkos@industriousone.com>2013-08-20 18:47:23 +0400
commita85980c52496306f8f4ac885a3e9da81d0c7179d (patch)
treef9182635fd1fad14ec9cb39c97ec58f595076aba /tests
parent55a0c026fceee2bdaa182d9b816e608c0ae10e9b (diff)
Find PCH on include dirs even if project has a location set
Diffstat (limited to 'tests')
-rw-r--r--tests/actions/make/test_make_pch.lua17
1 files changed, 17 insertions, 0 deletions
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