From 0f998582b9b646f51056a9e18f697705e8d98640 Mon Sep 17 00:00:00 2001 From: Johnathon Weaver Date: Thu, 6 Jan 2022 21:41:21 +0800 Subject: [PATCH] [host] nvfbc: Fix dwmapi linking error Fixed linking for DwmFlush and also rearranged as per how DXGI is. --- host/platform/Windows/capture/NVFBC/CMakeLists.txt | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/host/platform/Windows/capture/NVFBC/CMakeLists.txt b/host/platform/Windows/capture/NVFBC/CMakeLists.txt index 601cc651..6101ef88 100644 --- a/host/platform/Windows/capture/NVFBC/CMakeLists.txt +++ b/host/platform/Windows/capture/NVFBC/CMakeLists.txt @@ -9,11 +9,12 @@ add_library(capture_NVFBC STATIC file(TO_CMAKE_PATH "${NVFBC_SDK}" nvfbc_sdk) include_directories(file, "${nvfbc_sdk}/inc") +target_link_libraries(capture_NVFBC + platform_Windows + dwmapi +) + target_include_directories(capture_NVFBC PRIVATE src ) - -target_link_libraries(capture_NVFBC - platform_Windows -)