mirror of
https://github.com/Kitware/CMake.git
synced 2025-12-31 10:50:16 -06:00
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
This commit is contained in:
@@ -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 },
|
||||
|
||||
@@ -74,7 +74,8 @@ static cmVS7FlagTable cmVS11CLFlagTable[] = {
|
||||
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 },
|
||||
|
||||
@@ -78,7 +78,8 @@ static cmVS7FlagTable cmVS12CLFlagTable[] = {
|
||||
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 },
|
||||
|
||||
@@ -80,7 +80,8 @@ static cmVS7FlagTable cmVS140CLFlagTable[] = {
|
||||
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 },
|
||||
|
||||
@@ -87,7 +87,8 @@ static cmVS7FlagTable cmVS141CLFlagTable[] = {
|
||||
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 },
|
||||
|
||||
Reference in New Issue
Block a user