diff --git a/CMakeLists.txt b/CMakeLists.txt index f6d0cf84a4..bcf0d177d5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -205,7 +205,7 @@ if(CMAKE_CXX_COMPILER_ID MATCHES "MSVC" OR (CMAKE_CXX_COMPILER_ID STREQUAL "Clan # /guard:cf: Enable control flow guard # /wd4152: Disable warning on conversion of a function pointer to a data pointer # /wd4201: Disable warning on anonymous struct/unions - target_compile_options(loader_common_options INTERFACE /GR- /guard:cf /wd4152 /wd4201) + target_compile_options(loader_common_options INTERFACE /sdl /GR- /guard:cf /wd4152 /wd4201) # Enable control flow guard target_link_options(loader_common_options INTERFACE "LINKER:/guard:cf")