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 dfd0a1e commit 16f6202Copy full SHA for 16f6202
CMakeLists.txt
@@ -294,6 +294,12 @@ if (WIN32)
294
"RC_PRODUCT_NAME=\"${RC_PRODUCT_NAME}\""
295
"RC_PRODUCT_VERSION=\"${RC_FILE_VERSION}\""
296
"RC_COPYRIGHT=\"Copyright ${RC_CHAR_C} 2018 Intel Corporation. All rights reserved.\"")
297
+
298
+ # Enable compiler generation of Control Flow Guard security checks.
299
+ target_compile_options(${TARGET_NAME} PUBLIC "/guard:cf")
300
+ set_property(TARGET ${TARGET_NAME} APPEND_STRING PROPERTY
301
+ LINK_FLAGS "/DYNAMICBASE /GUARD:CF")
302
303
elseif(UNIX)
304
set_property(TARGET ${TARGET_NAME} APPEND_STRING PROPERTY
305
COMPILE_DEFINITIONS LIBCOMMON_CLANG_NAME="$<TARGET_SONAME_FILE_NAME:${TARGET_NAME}>")
0 commit comments