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 0bd125d commit a74228cCopy full SHA for a74228c
CMakeLists.txt
@@ -262,6 +262,12 @@ if (WIN32)
262
"RC_PRODUCT_NAME=\"${RC_PRODUCT_NAME}\""
263
"RC_PRODUCT_VERSION=\"${RC_FILE_VERSION}\""
264
"RC_COPYRIGHT=\"Copyright ${RC_CHAR_C} 2018 Intel Corporation. All rights reserved.\"")
265
+
266
+ # Enable compiler generation of Control Flow Guard security checks.
267
+ target_compile_options(${TARGET_NAME} PUBLIC "/guard:cf")
268
+ set_property(TARGET ${TARGET_NAME} APPEND_STRING PROPERTY
269
+ LINK_FLAGS "/DYNAMICBASE /GUARD:CF")
270
271
elseif(UNIX)
272
set_property(TARGET ${TARGET_NAME} APPEND_STRING PROPERTY
273
LINK_FLAGS " -Wl,--no-undefined")
0 commit comments