mirror of https://github.com/encounter/SDL.git
Only use CETCOMPAT on x86/x64 platforms
Fixes https://github.com/libsdl-org/SDL/issues/6173
This commit is contained in:
parent
cf040f8882
commit
ef988fe184
|
@ -692,7 +692,7 @@ if(MSVC)
|
||||||
target_compile_definitions(sdl-build-options INTERFACE "-D_CRT_SECURE_NO_WARNINGS")
|
target_compile_definitions(sdl-build-options INTERFACE "-D_CRT_SECURE_NO_WARNINGS")
|
||||||
|
|
||||||
# CET support was added in VS 16.7
|
# CET support was added in VS 16.7
|
||||||
if(MSVC_VERSION GREATER 1926 AND NOT CMAKE_GENERATOR_PLATFORM MATCHES ARM)
|
if(MSVC_VERSION GREATER 1926 AND CMAKE_GENERATOR_PLATFORM MATCHES "Win32|x64")
|
||||||
list(APPEND EXTRA_LDFLAGS_BUILD "-CETCOMPAT")
|
list(APPEND EXTRA_LDFLAGS_BUILD "-CETCOMPAT")
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
Loading…
Reference in New Issue