We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a6e69b3 commit 85daf0eCopy full SHA for 85daf0e
CMakeLists.txt
@@ -264,6 +264,12 @@ if (WIN32)
264
ARCHIVE DESTINATION lib
265
COMPONENT ${TARGET_NAME}
266
)
267
+
268
+ # Enable compiler generation of Control Flow Guard security checks.
269
+ target_compile_options(${TARGET_NAME} PUBLIC "/guard:cf")
270
+ set_property(TARGET ${TARGET_NAME} APPEND_STRING PROPERTY
271
+ LINK_FLAGS "/DYNAMICBASE /GUARD:CF")
272
273
elseif(UNIX)
274
set_property(TARGET ${TARGET_NAME} APPEND_STRING PROPERTY
275
COMPILE_DEFINITIONS LIBCOMMON_CLANG_NAME="$<TARGET_SONAME_FILE_NAME:${TARGET_NAME}>")
0 commit comments