From 2755190d8e988a232ca207cb3452c9741e2b5703 Mon Sep 17 00:00:00 2001 From: Vladimir Golovnev Date: Sat, 10 Feb 2024 11:59:14 +0300 Subject: [PATCH] Link PowrProf library to qBittorrent base PR #20387. --- src/base/CMakeLists.txt | 2 +- src/gui/CMakeLists.txt | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/base/CMakeLists.txt b/src/base/CMakeLists.txt index 854bd5b38..6d50a4faa 100644 --- a/src/base/CMakeLists.txt +++ b/src/base/CMakeLists.txt @@ -225,7 +225,7 @@ if (CMAKE_SYSTEM_NAME STREQUAL "Darwin") ${IOKit_LIBRARY} ) elseif (CMAKE_SYSTEM_NAME STREQUAL "Windows") - target_link_libraries(qbt_base PRIVATE Iphlpapi) + target_link_libraries(qbt_base PRIVATE Iphlpapi PowrProf) endif() if (NOT GUI) diff --git a/src/gui/CMakeLists.txt b/src/gui/CMakeLists.txt index afaf9e68a..1a426ed6e 100644 --- a/src/gui/CMakeLists.txt +++ b/src/gui/CMakeLists.txt @@ -277,10 +277,6 @@ if ((CMAKE_SYSTEM_NAME STREQUAL "Windows") OR (CMAKE_SYSTEM_NAME STREQUAL "Darwi ) endif() -if (CMAKE_SYSTEM_NAME STREQUAL "Windows") - target_link_libraries(qbt_gui PRIVATE PowrProf) -endif() - if (CMAKE_SYSTEM_NAME STREQUAL "Darwin") target_sources(qbt_gui PRIVATE macosdockbadge/badger.h