]> granicus.if.org Git - curl/commitdiff
cmake: Add advapi32 as explicit link library for win32
authorMichał Janiszewski <janisozaur@users.noreply.github.com>
Tue, 27 Mar 2018 13:22:37 +0000 (15:22 +0200)
committerSergei Nikulov <snikulov@users.noreply.github.com>
Tue, 27 Mar 2018 13:22:37 +0000 (16:22 +0300)
ARM targets need advapi32 explicitly.

Closes #2363

CMakeLists.txt

index f44968b9401a83acc1f79dc9cd72e338772f8ecf..bf25b1f792ff20569fc0c8ec2abdb4ba911f3381 100644 (file)
@@ -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