Skip to content

Commit

Permalink
Fix Advapi32 not being found on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
univrsal authored and kwhat committed Apr 17, 2022
1 parent 5b75791 commit 06e0a1e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()


Expand Down

0 comments on commit 06e0a1e

Please sign in to comment.