microsoft / OpenCLOn12

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

Support pulling D3D12TranslationLayer with FetchContent #25

Closed jenatali closed 2 years ago

jenatali commented 3 years ago

Right now, the build is overly complex because it requires D3D12TranslationLayer and OpenCLOn12 to be siblings, both included by a (not-provided) top-level CMakeLists.txt. This is useful for us because we want to build D3D12TranslationLayer once, and share that .lib among multiple other mapping layers, but it would be way more convenient for anybody else building this layer to just grab this repo and have it pull dependencies automatically.