summaryrefslogtreecommitdiffstats
path: root/Source/cmVS10CLFlagTable.h
diff options
context:
space:
mode:
authorOlender, Sebastian D <sebastian.d.olender@intel.com>2017-07-05 08:58:04 (GMT)
committerOlender, Sebastian D <sebastian.d.olender@intel.com>2017-07-05 08:58:04 (GMT)
commitd1713d8bc580cdfad39b088285afcb92dea417de (patch)
treee1f3eabbb38a7a3ae5c8a24fbe505fae00f1a096 /Source/cmVS10CLFlagTable.h
parentdb96ebaa7bc5366aa5790307b682aa8548c2bba2 (diff)
downloadCMake-d1713d8bc580cdfad39b088285afcb92dea417de.zip
CMake-d1713d8bc580cdfad39b088285afcb92dea417de.tar.gz
CMake-d1713d8bc580cdfad39b088285afcb92dea417de.tar.bz2
VS: connect /Y- compiler option with "Not Using Precompiled Headers"
The change allows to selectively disable PrecompiledHeaders. Despite the `$(VCTargetsPath)/1033/cl.xml` contains an empty value for switch, for effectively turn off setting need to use /Y- option as described on msdn: https://msdn.microsoft.com/en-us/library/1hy7a92h.aspx
Diffstat (limited to 'Source/cmVS10CLFlagTable.h')
-rw-r--r--Source/cmVS10CLFlagTable.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmVS10CLFlagTable.h b/Source/cmVS10CLFlagTable.h
index dbd760e..df4d58c 100644
--- a/Source/cmVS10CLFlagTable.h
+++ b/Source/cmVS10CLFlagTable.h
@@ -70,7 +70,8 @@ static cmVS7FlagTable cmVS10CLFlagTable[] = {
cmVS7FlagTable::UserValueIgnored | cmVS7FlagTable::Continue },
{ "PrecompiledHeader", "Yu", "Use", "Use",
cmVS7FlagTable::UserValueIgnored | cmVS7FlagTable::Continue },
- { "PrecompiledHeader", "", "Not Using Precompiled Headers", "NotUsing", 0 },
+ { "PrecompiledHeader", "Y-", "Not Using Precompiled Headers", "NotUsing",
+ 0 },
{ "AssemblerOutput", "", "No Listing", "NoListing", 0 },
{ "AssemblerOutput", "FA", "Assembly-Only Listing", "AssemblyCode", 0 },