diff --git a/CMakeLists.txt b/CMakeLists.txt index f39edb67b..ca22be73a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -128,10 +128,10 @@ if(ANDROID) endif() if(MSVC) find_package(wil CONFIG) - find_library(D3D11_LIBRARY d3d11) - find_library(D3D12_LIBRARY d3d12) - find_library(DXGI_LIBRARY dxgi) - find_library(WINDOWSAPP_LIBRARY WindowsApp) + set(D3D11_LIBRARY d3d11) + set(D3D12_LIBRARY d3d12) + set(DXGI_LIBRARY dxgi) + set(WINDOWSAPP_LIBRARY WindowsApp) endif() #https://github.com/arsenm/sanitizers-cmake