microsoft / OpenCLOn12

The OpenCL-on-D3D12 mapping layer
MIT License
104 stars 13 forks source link

Update dependencies and switch to using FetchContent for all of them #27

Closed jenatali closed 2 years ago

jenatali commented 2 years ago

Since D3D9On12 and D3D11On12 are now using FetchContent, rather than requiring a parent CMakeLists.txt which creates the d3d12translationlayer target for us, let's use FetchContent too. While we're at it, let's switch the rest of our dependencies to it too - this means you don't have to recursively clone this project, and you won't clone GoogleTest unless you're building the tests.

This also updates the D3D12TranslationLayer dependency to latest, and fixes the build to deal with that, and the same for OpenCL-Headers. The WIL/GoogleTest projects are also updated, but had no breaking changes.