Fix Crosscompilation for Windows on Linux #1432

Co-authored-by: Ernst Blecha <ernst.blecha@primetals.com>
This commit is contained in:
Ian Craggs 2024-12-27 17:59:44 +00:00
parent d157c6a212
commit 68c7c80992
1 changed files with 2 additions and 2 deletions

View File

@ -57,9 +57,9 @@ endif()
if(WIN32)
if(PAHO_WITH_LIBRESSL)
set(LIBS_SYSTEM ws2_32 crypt32 RpcRT4 bcrypt)
set(LIBS_SYSTEM ws2_32 crypt32 rpcrt4 bcrypt)
else()
set(LIBS_SYSTEM ws2_32 crypt32 RpcRT4)
set(LIBS_SYSTEM ws2_32 crypt32 rpcrt4)
endif()
elseif(UNIX)
if(CMAKE_SYSTEM_NAME MATCHES "Linux")