DirectStorage icon indicating copy to clipboard operation
DirectStorage copied to clipboard

Fix GDeflateDemo and GDeflateTest not linking

Open elasota opened this issue 2 years ago • 1 comments

Both executables are missing windowsapp.lib for several WinRT functions referenced by the WinRT headers, and GDeflateDemo is also missing a reference to DXC, causing both to fail to link.

elasota avatar Jan 07 '24 00:01 elasota

I wonder if something else is going on here. My assumption prior to this fix was that dxcompiler.lib was being picked up as part of the vcpkg system and plumbed via the CMakeLists.txt bits below:

find_package(directx-dxc CONFIG REQUIRED) find_package(directx-headers CONFIG REQUIRED) find_package(wil CONFIG REQUIRED)

set(libs ${libs}
    Microsoft::DirectXShaderCompiler <<<<<<<<<-----------
    Microsoft::DirectX-Guids Microsoft::DirectX-Headers
    WIL::WIL
    "d3d12.lib"
    "dxgi.lib"

Did something change for the dx compiler? We should not have to explicly add the .lib to the project if the package is referenced.

coopp avatar Oct 21 '25 19:10 coopp