Sign in
fuchsia
/
third_party
/
github.com
/
Kitware
/
CMake
/
refs/heads/main
/
.
/
Tests
/
RunCMake
/
VS10Project
/
VsControlFlowGuardLinkSetting.cmake
blob: 31e69acd3770f74b034ce80143327fafb6baa9ab [
file
] [
log
] [
blame
] [
edit
]
enable_language
(
CXX
)
# Add the Control Flow Guard compiler and linker option
add_compile_options
(
"/guard:cf"
)
string
(
APPEND CMAKE_SHARED_LINKER_FLAGS
" /guard:cf"
)
add_library
(
ControlFlowGuardProject
SHARED foo
.
cpp
)