mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-03 17:09:01 +08:00
13 lines
582 B
Diff
13 lines
582 B
Diff
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||
|
index e9c3d37..52c6f93 100644
|
||
|
--- a/CMakeLists.txt
|
||
|
+++ b/CMakeLists.txt
|
||
|
@@ -228,6 +228,7 @@ if(MSVC)
|
||
|
endif()
|
||
|
|
||
|
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>")
|