2022-09-26 14:45:07 +08:00
|
|
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2023-01-05 06:44:07 +08:00
|
|
|
index e20dfdb..fd3279c 100644
|
2022-09-26 14:45:07 +08:00
|
|
|
--- a/CMakeLists.txt
|
|
|
|
+++ b/CMakeLists.txt
|
2023-01-05 06:44:07 +08:00
|
|
|
@@ -230,6 +230,7 @@ if(MSVC)
|
2022-09-26 14:45:07 +08:00
|
|
|
|
2023-01-05 06:44:07 +08:00
|
|
|
if((MSVC_VERSION GREATER_EQUAL 1928)
|
|
|
|
AND (CMAKE_SIZEOF_VOID_P EQUAL 8)
|
2022-09-26 14:45:07 +08:00
|
|
|
+ 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>")
|
2023-01-05 06:44:07 +08:00
|
|
|
|