From 17345d47a5201381c83db0e98a6e2d362738268d Mon Sep 17 00:00:00 2001 From: Jason Perkins Date: Wed, 3 Jul 2013 08:59:05 -0400 Subject: Stop stripping path from PCH headers in Visual Studio; first step in standardizing handling across tools --- tests/actions/vstudio/test_vs200x_vcproj.lua | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'tests') 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" -- cgit v1.2.3