CMake: lower case advapi32 for cross-building with mingw (#420)

When cross compiling with yocto's meta-mingw layer, getting a dependency
error.

This is caused by the fact that advapi32 is lower case in mingw builds.

Fix By: Sinan Kaya <sinan.kaya@microsoft.com>
pull/421/head
Sinan Kaya 3 years ago committed by GitHub
parent 6299d7be38
commit 4418939478
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      CMakeLists.txt

@ -233,7 +233,7 @@ IF (HAVE_LIBRT)
LIST (APPEND CARES_DEPENDENT_LIBS rt)
ENDIF ()
IF (WIN32)
LIST (APPEND CARES_DEPENDENT_LIBS ws2_32 Advapi32)
LIST (APPEND CARES_DEPENDENT_LIBS ws2_32 advapi32)
ENDIF ()

Loading…
Cancel
Save