cmake: Allow D3D detection outside of the VS Developer Command Prompt

Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2276>
This commit is contained in:
Andrei Aristarkhov 2023-07-31 18:53:35 -07:00 committed by Marge Bot
parent 34d82ea082
commit 9652fee1ee

View file

@ -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