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-07-03 16:59:05 +0400
committerJason Perkins <starkos@industriousone.com>2013-07-03 16:59:05 +0400
commit17345d47a5201381c83db0e98a6e2d362738268d (patch)
tree64b7d4c8218797561ab75e3e068baab8338049e3 /tests
parent5a3d708d319cf22e3acd9b426e8b298af6c6131b (diff)
Stop stripping path from PCH headers in Visual Studio; first step in standardizing handling across tools
Diffstat (limited to 'tests')
-rw-r--r--tests/actions/vstudio/test_vs200x_vcproj.lua12
1 files changed, 8 insertions, 4 deletions
diff --git a/tests/actions/vstudio/test_vs200x_vcproj.lua b/tests/actions/vstudio/test_vs200x_vcproj.lua
index 5bc06af..68b2582 100644
--- a/tests/actions/vstudio/test_vs200x_vcproj.lua
+++ b/tests/actions/vstudio/test_vs200x_vcproj.lua
@@ -1,7 +1,7 @@
--
-- tests/test_vs200x_vcproj.lua
-- Automated test suite for Visual Studio 2002-2008 C/C++ project generation.
--- Copyright (c) 2009 Jason Perkins and the Premake project
+-- Copyright (c) 2009-2013 Jason Perkins and the Premake project
--
T.vs200x_vcproj = { }
@@ -443,11 +443,15 @@
--
--- Test precompiled header handling
+-- Test precompiled header handling; the header should be treated as
+-- a plain string value, with no path manipulation applied, since it
+-- needs to match the value of the #include statement used in the
+-- project code.
--
function suite.CompilerBlock_OnPCH()
- pchheader "source/common.h"
+ location "build/MyProject"
+ pchheader "include/common.h"
pchsource "source/common.cpp"
prepare()
vc200x.VCCLCompilerTool(premake.getconfig(prj, "Debug"))
@@ -459,7 +463,7 @@
RuntimeLibrary="2"
EnableFunctionLevelLinking="true"
UsePrecompiledHeader="2"
- PrecompiledHeaderThrough="common.h"
+ PrecompiledHeaderThrough="include/common.h"
WarningLevel="3"
Detect64BitPortabilityProblems="true"
ProgramDataBaseFileName="$(OutDir)\MyProject.pdb"