From 06e0a1e4d15a77a50138557417acd5b8c84b2f89 Mon Sep 17 00:00:00 2001 From: alex Date: Sun, 17 Apr 2022 20:39:15 +0200 Subject: [PATCH] Fix Advapi32 not being found on windows --- CMakeLists.txt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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()