diff --git a/CMakeLists.txt b/CMakeLists.txt index 8a1ed49b..a13390e0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -251,9 +251,7 @@ elseif(APPLE) target_link_libraries(uiohook "${APPKIT}") endif() elseif(WIN32) - find_library(ADVAPI32 Advapi32) - target_include_directories(uiohook PRIVATE "${ADVAPI32}") - target_link_libraries(uiohook "${ADVAPI32}") + target_link_libraries(uiohook Advapi32) endif()