Skip to content

Commit

Permalink
Fix Crosscompilation for Windows on Linux
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
ernstblechaPT committed Apr 22, 2024
1 parent 6b1e202 commit bc1bd9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit bc1bd9c

Please sign in to comment.