Closed Accessory closed 1 year ago
Hi, @Accessory and thanks for PR!
Can you please explain a use case here and why this find
is needed?
On my windows machine there is no issue linking DXC as-is, without find-library.
I compiled OpenGothic with packages from vcpkg and Visual Studio Community 2022 amd64. Using CMake the Header from the DirectXShaderCompiler could not be found during compilation. I could adjust the Include-Folders so the Compiler could find the Headers. With the
find_package(directx-dxc CONFIG REQUIRED)
target_link_libraries(${PROJECT_NAME} PRIVATE Microsoft::DirectXShaderCompiler)
the Include-Folders contained all the necessary folders to compile without adjusting the configuration, set environment variables or create my own Include Folder.
Merged, thanks!
This helps to find the DirectXShaderCompiler. With this edition the code can compile using vscode and vcpkg