diff options
author | Jason Perkins <starkos@industriousone.com> | 2013-07-03 16:59:05 +0400 |
---|---|---|
committer | Jason Perkins <starkos@industriousone.com> | 2013-07-03 16:59:05 +0400 |
commit | e390d423462f1aa5381f09db74920931fe5e2335 (patch) | |
tree | 64b7d4c8218797561ab75e3e068baab8338049e3 /tests/actions | |
parent | 1389d1d6f3aac36cd9459d6d99a9e1ff0fddd3de (diff) |
Stop stripping path from PCH headers in Visual Studio; first step in standardizing handling across tools
Diffstat (limited to 'tests/actions')
-rw-r--r-- | tests/actions/vstudio/test_vs200x_vcproj.lua | 12 |
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" |