mirror of
https://github.com/Kitware/CMake.git
synced 2025-12-31 10:50:16 -06:00
VS: Fix support for '/guard:cf' linker flag
Although `$(VCTargetsPath)/1033/link.xml` for v140 and v141 toolsets contains an entry for `LinkControlFlowGuard`, it does not work when used in a `.vcxproj` file. Drop our link flag table entries for these toolsets so that the flag will be passed via `AdditionalOptions`.
This commit is contained in:
committed by
Brad King
parent
594b0f80a8
commit
82a5c2c6a5
@@ -134,9 +134,6 @@ static cmVS7FlagTable cmVS140LinkFlagTable[] = {
|
||||
{ "CLRSupportLastError", "CLRSupportLastError:SYSTEMDLL", "System Dlls Only",
|
||||
"SystemDlls", 0 },
|
||||
|
||||
{ "LinkControlFlowGuard", "guard:cf", "Enable Security Check with Guard",
|
||||
"Guard", 0 },
|
||||
|
||||
// Bool Properties
|
||||
{ "LinkIncremental", "INCREMENTAL:NO", "", "false", 0 },
|
||||
{ "LinkIncremental", "INCREMENTAL", "", "true", 0 },
|
||||
|
||||
@@ -135,9 +135,6 @@ static cmVS7FlagTable cmVS141LinkFlagTable[] = {
|
||||
{ "CLRSupportLastError", "CLRSupportLastError:SYSTEMDLL", "System Dlls Only",
|
||||
"SystemDlls", 0 },
|
||||
|
||||
{ "LinkControlFlowGuard", "guard:cf", "Enable Security Check with Guard",
|
||||
"Guard", 0 },
|
||||
|
||||
// Bool Properties
|
||||
{ "LinkIncremental", "INCREMENTAL:NO", "", "false", 0 },
|
||||
{ "LinkIncremental", "INCREMENTAL", "", "true", 0 },
|
||||
|
||||
Reference in New Issue
Block a user