vcpkg/ports/uvatlas/openexr.patch
Chuck Walbourn aa45329eb6
[directxmesh, directxtex, directxtk, uvatlas] update ports for Dec 2022 releases (#28482)
* [directxmesh, directxtex, directxtk, uvatlas] update ports for December 2022 releases

* [directxtk12] fixed spectre feature

* Update baseline

* Upstream fixes for WSL

* Update baseline

Co-authored-by: walbourn <chuckw_walbourn@yahoo.com>
2023-01-04 14:44:07 -08:00

14 lines
578 B
Diff

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>")