From e9e8789d20b43bc13ac58ce210aa51711c631bd7 Mon Sep 17 00:00:00 2001 From: Chuck Walbourn Date: Mon, 25 Jul 2022 23:42:43 -0700 Subject: [PATCH] CMake fix for clang v12 --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ce40c3c..2299cae 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -191,7 +191,8 @@ if(MSVC) endforeach() endif() - if((MSVC_VERSION GREATER_EQUAL 1928) AND (CMAKE_SIZEOF_VOID_P EQUAL 8)) + if((MSVC_VERSION GREATER_EQUAL 1928) AND (CMAKE_SIZEOF_VOID_P EQUAL 8) + AND ((NOT (CMAKE_CXX_COMPILER_ID MATCHES "Clang")) OR (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 13.0))) foreach(t IN LISTS TOOL_EXES ITEMS ${PROJECT_NAME}) target_compile_options(${t} PRIVATE "$<$>:/guard:ehcont>") target_link_options(${t} PRIVATE "$<$>:/guard:ehcont>")