You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
8 lines
218 B
8 lines
218 B
3 years ago
|
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)
|