vcpkg/ports/uvatlas/openexr.patch

14 lines
578 B
Diff
Raw Normal View History

diff --git a/CMakeLists.txt b/CMakeLists.txt
index e20dfdb..fd3279c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -230,6 +230,7 @@ if(MSVC)
if((MSVC_VERSION GREATER_EQUAL 1928)
AND (CMAKE_SIZEOF_VOID_P EQUAL 8)
+ AND NOT TARGET OpenEXR::OpenEXR # as dependency of package directxtex
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 "$<$<NOT:$<CONFIG:DEBUG>>:/guard:ehcont>")