From 02455044f4d102e9880891694383d951cc44a710 Mon Sep 17 00:00:00 2001 From: Chuck Walbourn Date: Fri, 16 Feb 2024 11:17:53 -0800 Subject: [PATCH] OpenEXR doesn't build with /ehcont (#145) --- build/CompilerAndLinker.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/build/CompilerAndLinker.cmake b/build/CompilerAndLinker.cmake index 44fa1b0..9a9612f 100644 --- a/build/CompilerAndLinker.cmake +++ b/build/CompilerAndLinker.cmake @@ -45,6 +45,7 @@ if(MSVC) if((MSVC_VERSION GREATER_EQUAL 1928) AND (CMAKE_SIZEOF_VOID_P EQUAL 8) + AND (NOT (TARGET OpenEXR::OpenEXR)) AND ((NOT (CMAKE_CXX_COMPILER_ID MATCHES "Clang|IntelLLVM")) OR (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 13.0))) list(APPEND COMPILER_SWITCHES "$<$>:/guard:ehcont>") list(APPEND LINKER_SWITCHES "$<$>:/guard:ehcont>")