From bc1bd9cad558f0d302d852973d8eac4b8a9b774b Mon Sep 17 00:00:00 2001 From: ernstblechaPT <142894096+ernstblechaPT@users.noreply.github.com> Date: Thu, 14 Dec 2023 13:18:03 +0100 Subject: [PATCH] Fix Crosscompilation for Windows on Linux During compilation the build-script looks for libRpcRT4.dll, this file can not be found if the host system has a case-sensitve file system (e.g. Linux) and the case does not match (e.g. mingw32-64 provides librpcrt4.dll) Signed-off-by: Ernst Blecha --- src/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 0f795b9a..efb76596 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -58,7 +58,7 @@ IF (NOT PAHO_HIGH_PERFORMANCE) ENDIF() IF (WIN32) - SET(LIBS_SYSTEM ws2_32 crypt32 RpcRT4) + SET(LIBS_SYSTEM ws2_32 crypt32 rpcrt4) ELSEIF (UNIX) IF(CMAKE_SYSTEM_NAME MATCHES "Linux") SET(LIBS_SYSTEM c dl pthread rt)