From 9652fee1eefb4a533cde8995c200b126a2ccb8aa Mon Sep 17 00:00:00 2001 From: Andrei Aristarkhov Date: Mon, 31 Jul 2023 18:53:35 -0700 Subject: [PATCH] cmake: Allow D3D detection outside of the VS Developer Command Prompt Part-of: --- CMakeLists.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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