From 10446c1a0bdb4e58725e974e731298a7906c43e1 Mon Sep 17 00:00:00 2001 From: Richard Stanway Date: Thu, 9 Dec 2021 02:51:08 +0100 Subject: [PATCH] UI/updater: Explicitly set PSAPI_VERSION=2 If the user didn't set their minimum SDK level this would default to PSAPI_VERSION=1 which requires psapi.lib (removed in 4614c057). --- UI/win-update/updater/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UI/win-update/updater/CMakeLists.txt b/UI/win-update/updater/CMakeLists.txt index 728f745a7..9cce960af 100644 --- a/UI/win-update/updater/CMakeLists.txt +++ b/UI/win-update/updater/CMakeLists.txt @@ -32,7 +32,7 @@ set(updater_SOURCES updater.manifest ) -add_definitions(-DNOMINMAX -DUNICODE -D_UNICODE) +add_definitions(-DNOMINMAX -DUNICODE -D_UNICODE -DPSAPI_VERSION=2) if(MSVC) add_compile_options($,/MTd,/MT>) endif()