cmake: fix undefined symbols and multiple definitions

This commit is contained in:
anon
2021-04-27 12:06:42 +00:00
committed by selsta
parent 14be80f992
commit fe76d7dee7
6 changed files with 66 additions and 16 deletions

View File

@@ -572,6 +572,10 @@ if(STATIC AND NOT IOS)
endif()
endif()
if (WIN32)
list(APPEND OPENSSL_LIBRARIES ws2_32 crypt32)
endif()
find_package(HIDAPI)
add_definition_if_library_exists(c memset_s "string.h" HAVE_MEMSET_S)