microsoft / DirectXTK12

The DirectX Tool Kit (aka DirectXTK12) is a collection of helper classes for writing DirectX 12 code in C++
https://walbourn.github.io/directx-tool-kit-for-directx-12/
MIT License
1.45k stars 369 forks source link

GDKX not currently compatible with /Zc:templateScope #159

Closed walbourn closed 1 year ago

walbourn commented 1 year ago

With VS 2022 17.5 or later I use /Zc:templateScope for conformance, but this fails to build with current Microsoft GDK with Xbox release if you make use of wrl.h or wrl/events.h.

This updates the CMake to avoid using the conformance switch on Xbox targets.