From: MichaƂ Janiszewski Date: Tue, 27 Mar 2018 13:22:37 +0000 (+0200) Subject: cmake: Add advapi32 as explicit link library for win32 X-Git-Tag: curl-7_60_0~136 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bea18c7f39d2d470c4965444519271e8ff380fb3;p=curl cmake: Add advapi32 as explicit link library for win32 ARM targets need advapi32 explicitly. Closes #2363 --- diff --git a/CMakeLists.txt b/CMakeLists.txt index f44968b94..bf25b1f79 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -285,6 +285,7 @@ check_function_exists(gethostname HAVE_GETHOSTNAME) if(WIN32) check_library_exists_concat("ws2_32" getch HAVE_LIBWS2_32) check_library_exists_concat("winmm" getch HAVE_LIBWINMM) + list(APPEND CURL_LIBS "advapi32") endif() # check SSL libraries