mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-01 03:29:18 -05:00
VS: Suppress MSBuild default flags not specified by project or user
This commit is contained in:
@@ -3664,6 +3664,17 @@ bool cmVisualStudio10TargetGenerator::ComputeClOptions(
|
||||
if (!clOptions.HasFlag("BasicRuntimeChecks")) {
|
||||
clOptions.AddFlag("BasicRuntimeChecks", "Default");
|
||||
}
|
||||
if (!clOptions.HasFlag("BufferSecurityCheck")) {
|
||||
clOptions.AddFlag("BufferSecurityCheck", "");
|
||||
}
|
||||
if (!clOptions.HasFlag("CallingConvention")) {
|
||||
clOptions.AddFlag("CallingConvention", "");
|
||||
}
|
||||
// We cannot use the `Default` value, because it is incompatible with
|
||||
// VS2019 & first releases of VS2022
|
||||
if (!clOptions.HasFlag("FloatingPointModel")) {
|
||||
clOptions.AddFlag("FloatingPointModel", "");
|
||||
}
|
||||
if (!clOptions.HasFlag("ForceConformanceInForLoopScope")) {
|
||||
clOptions.AddFlag("ForceConformanceInForLoopScope", "");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user