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