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

Fix CMake problem with /Zc:templateScope on older Windows SDKs #171

Closed walbourn closed 1 year ago

walbourn commented 1 year ago

When building with CMake and VS 2022 Update 5 or later, I make use of /Zc:templateScope for conformance validation. This is, however, not compatible with the Windows SDK prior to the Windows SDK (22000) build.

Also fixes a build break in the Windows SDK preview validation pipelines.