Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CMake: fix FindD3D12.cmake when using non-VS generators (microsoft#6056)
FindD3D12.cmake sets WIN10_SDK_VERSION to CMAKE_VS_WINDOWS_TARGET_PLATFORM_VERSION; however, this latter variable is only defined when using a Visual Studio CMake generator. When using Ninja instead, for example, this variable will be empty, and WIN10_SDK_VERSION will remain unset. This change detects when CMAKE_VS_WINDOWS_TARGET_PLATFORM_VERSION and attempts to retrieve the latest SDK by listing directories under ${WIN10_SDK_PATH}/Include.
- Loading branch information