Exclude CETCOMPAT from Windows ARM build (#10417)

This commit is contained in:
Changming Sun 2022-01-27 17:57:01 -08:00 committed by GitHub
parent ce081fe655
commit b14da94fc1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1204,7 +1204,7 @@ function(onnxruntime_configure_target target_name)
endif()
# Keep BinSkim happy
if(MSVC)
if(MSVC AND NOT onnxruntime_target_platform MATCHES "ARM")
target_link_options(${target_name} PRIVATE "/CETCOMPAT")
endif()
endfunction()