From 457b95322d69b868735e2785176e660c1cebfeb9 Mon Sep 17 00:00:00 2001 From: Brad King Date: Thu, 22 Oct 2009 10:47:59 -0400 Subject: [PATCH] Fix VS 10 flag table for precompiled headers The VS 10 flag table generation script did not produce correct entries for precompiled header flags. Since precompiled header flag translation requires multiple entries cooperating in a certain order, it is not worth the time to make the generation script work automatically. This commit manually adds the proper entries. See issue #9753. --- Source/cmVS10CLFlagTable.h | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/Source/cmVS10CLFlagTable.h b/Source/cmVS10CLFlagTable.h index 10f2c9be6..806a15342 100644 --- a/Source/cmVS10CLFlagTable.h +++ b/Source/cmVS10CLFlagTable.h @@ -102,9 +102,11 @@ static cmVS7FlagTable cmVS10CLFlagTable[] = "Fast", "Fast", 0}, {"PrecompiledHeader", "Yc", - "Create", "Create", 0}, + "Create", "Create", + cmVS7FlagTable::UserValueIgnored | cmVS7FlagTable::Continue}, {"PrecompiledHeader", "Yu", - "Use", "Use", 0}, + "Use", "Use", + cmVS7FlagTable::UserValueIgnored | cmVS7FlagTable::Continue}, {"PrecompiledHeader", "", "Not Using Precompiled Headers", "NotUsing", 0}, @@ -238,7 +240,12 @@ static cmVS7FlagTable cmVS10CLFlagTable[] = //String Properties // Skip [TrackerLogDirectory] - no command line Switch. - // Skip [PrecompiledHeaderFile] - no command line Switch. + {"PrecompiledHeaderFile", "Yc", + "Precompiled Header Name", + "", cmVS7FlagTable::UserValueRequired}, + {"PrecompiledHeaderFile", "Yu", + "Precompiled Header Name", + "", cmVS7FlagTable::UserValueRequired}, {"PrecompiledHeaderOutputFile", "Fp", "Precompiled Header Output File", "", cmVS7FlagTable::UserValue},