VsControlFlowGuardLinkSetting.cmake 218 B

1234567
  1. enable_language(CXX)
  2. # Add the Control Flow Guard compiler and linker option
  3. add_compile_options("/guard:cf")
  4. string(APPEND CMAKE_SHARED_LINKER_FLAGS " /guard:cf")
  5. add_library(ControlFlowGuardProject SHARED foo.cpp)