[CMAKE] Do not use a flag which clang doesn't know

This commit is contained in:
Jérôme Gardou 2021-04-30 14:15:39 +02:00 committed by Jérôme Gardou
parent 523912536e
commit aa51bcfbcb

View file

@ -67,7 +67,9 @@ add_compile_options(/Zc:threadSafeInit-)
# HACK: Disable use of __CxxFrameHandler4 on VS 16.3+ (x64 only)
# See https://developercommunity.visualstudio.com/content/problem/746534/visual-c-163-runtime-uses-an-unsupported-api-for-u.html
if(ARCH STREQUAL "amd64" AND MSVC_VERSION GREATER 1922)
add_compile_options(/d2FH4-)
if (NOT CMAKE_C_COMPILER_ID STREQUAL "Clang")
add_compile_options(/d2FH4-)
endif()
add_link_options(/d2:-FH4-)
endif()