diff options
author | Olender, Sebastian D <sebastian.d.olender@intel.com> | 2017-07-05 08:58:04 (GMT) |
---|---|---|
committer | Olender, Sebastian D <sebastian.d.olender@intel.com> | 2017-07-05 08:58:04 (GMT) |
commit | d1713d8bc580cdfad39b088285afcb92dea417de (patch) | |
tree | e1f3eabbb38a7a3ae5c8a24fbe505fae00f1a096 /Source/cmVS10CLFlagTable.h | |
parent | db96ebaa7bc5366aa5790307b682aa8548c2bba2 (diff) | |
download | CMake-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.h | 3 |
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 }, |